projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2121f15
)
Don't ask for -iv for ciphers that need no IV.
author
Ben Laurie
<ben@openssl.org>
Tue, 3 Mar 2009 15:14:33 +0000
(15:14 +0000)
committer
Ben Laurie
<ben@openssl.org>
Tue, 3 Mar 2009 15:14:33 +0000
(15:14 +0000)
apps/enc.c
patch
|
blob
|
history
diff --git
a/apps/enc.c
b/apps/enc.c
index a64c654d4d2b37d8893bdbc05636b478932e60c5..53de51ad72189a0aecb16e3d96c02079a22896a7 100644
(file)
--- a/
apps/enc.c
+++ b/
apps/enc.c
@@
-560,7
+560,8
@@
bad:
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,