diff options
Diffstat (limited to 'cipher.c')
-rw-r--r-- | cipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |