commit | 73bfcf2226b3f20869b7d5ca06df0650d0a06723 | [log] [tgz] |
---|---|---|
author | Ben Laurie <ben@openssl.org> | Tue Mar 03 15:14:33 2009 +0000 |
committer | Ben Laurie <ben@openssl.org> | Tue Mar 03 15:14:33 2009 +0000 |
tree | 9e2bf33638bb0ebe1b04d723ceff7ac7b5190987 | |
parent | 2121f15dafc99cb04a0f714b2c26bde51487ac2d [diff] [blame] |
Don't ask for -iv for ciphers that need no IV.
diff --git a/apps/enc.c b/apps/enc.c index a64c654..53de51a 100644 --- a/apps/enc.c +++ b/apps/enc.c
@@ -560,7 +560,8 @@ BIO_printf(bio_err,"invalid hex iv value\n"); goto end; } - if ((hiv == NULL) && (str == NULL)) + if ((hiv == NULL) && (str == NULL) + && EVP_CIPHER_iv_length(cipher) != 0) { /* No IV was explicitly set and no IV was generated * during EVP_BytesToKey. Hence the IV is undefined,