From e5d6528a1223a7f94fe399881451589d6a5ad0bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Fri, 4 Jan 2002 13:04:45 +0000 Subject: [PATCH] fix EVP_CIPHER_mode macro Submitted by: "Dan S. Camper" --- CHANGES | 3 +++ crypto/evp/evp.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index cbc79829c5..48ac44e80a 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,9 @@ *) applies to 0.9.6a/0.9.6b/0.9.6c and 0.9.7 +) applies to 0.9.7 only + *) Fix EVP_CIPHER_mode macro. + ["Dan S. Camper" ] + +) Change the AES code to follow the same name structure as all other symmetric ciphers, and behave the same way. Move everything to the directory crypto/aes, thereby obsoleting crypto/rijndael. 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) -- 2.25.1