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:
d460572
)
No need to call EVP_CIPHER_CTX_init after EVP_CIPHER_CTX_new
author
Matt Caswell
<matt@openssl.org>
Thu, 10 Mar 2016 09:18:50 +0000
(09:18 +0000)
committer
Matt Caswell
<matt@openssl.org>
Thu, 10 Mar 2016 09:18:50 +0000
(09:18 +0000)
The afalgtest was unnecessarily initing an EVP_CIPHER_CTX. It is not
needed and is deprecated.
Reviewed-by: Rich Salz <rsalz@openssl.org>
test/afalgtest.c
patch
|
blob
|
history
diff --git
a/test/afalgtest.c
b/test/afalgtest.c
index c15e111545b3f7cbec61f3980408d7eb3462f9cf..e1327445e2abde6ee68b1b6269f21aed04ceb429 100644
(file)
--- a/
test/afalgtest.c
+++ b/
test/afalgtest.c
@@
-82,7
+82,6
@@
static int test_afalg_aes_128_cbc(ENGINE *e)
fprintf(stderr, "%s() failed to allocate ctx\n", __func__);
return 0;
}
- EVP_CIPHER_CTX_init(ctx);
RAND_bytes(in, BUFFER_SIZE);
if ( !EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)