summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-01-04 13:04:45 +0000
committerBodo Möller <bodo@openssl.org>2002-01-04 13:04:45 +0000
commite5d6528a1223a7f94fe399881451589d6a5ad0bb (patch)
treea9cef102555980ef310c1eeddb55c6e4a744cbd0 /crypto/evp
parent980afccf98a9ab6df7a26161b5a39538c30a2292 (diff)
fix EVP_CIPHER_mode macro
Submitted by: "Dan S. Camper" <dan@bti.net>
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h
index 8d86d85f8d..beb2c9eb44 100644
--- a/crypto/evp/evp.h
+++ b/crypto/evp/evp.h
@@ -409,7 +409,7 @@ typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
#define EVP_CIPHER_key_length(e) ((e)->key_len)
#define EVP_CIPHER_iv_length(e) ((e)->iv_len)
#define EVP_CIPHER_flags(e) ((e)->flags)
-#define EVP_CIPHER_mode(e) ((e)->flags) & EVP_CIPH_MODE)
+#define EVP_CIPHER_mode(e) (((e)->flags) & EVP_CIPH_MODE)
#define EVP_CIPHER_CTX_cipher(e) ((e)->cipher)
#define EVP_CIPHER_CTX_nid(e) ((e)->cipher->nid)