summaryrefslogtreecommitdiff
path: root/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher.c')
-rw-r--r--cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher.c b/cipher.c
index 255f840a3..64bd744b8 100644
--- a/cipher.c
+++ b/cipher.c
@@ -252,7 +252,7 @@ cipher_init(CipherContext *cc, Cipher *cipher,
252 type->key_len = keylen; 252 type->key_len = keylen;
253 } 253 }
254 EVP_CipherInit(&cc->evp, type, (u_char *)key, (u_char *)iv, 254 EVP_CipherInit(&cc->evp, type, (u_char *)key, (u_char *)iv,
255 (encrypt == CIPHER_ENCRYPT)); 255 (do_encrypt == CIPHER_ENCRYPT));
256#else 256#else
257 if (EVP_CipherInit(&cc->evp, type, NULL, (u_char *)iv, 257 if (EVP_CipherInit(&cc->evp, type, NULL, (u_char *)iv,
258 (do_encrypt == CIPHER_ENCRYPT)) == 0) 258 (do_encrypt == CIPHER_ENCRYPT)) == 0)