diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-05-18 23:43:10 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-05-18 23:43:10 +0000 |
commit | 0fccb00b5bcf731c8a80606b10bff3cf8a901ee7 (patch) | |
tree | 3aca32b1193c99308d6b36a374e1c1954f88ae9f /crypto/asn1/p5_pbev2.c | |
parent | 72da660ddb5d3e32dc70479205079d3e16913991 (diff) | |
download | openssl-0fccb00b5bcf731c8a80606b10bff3cf8a901ee7.tar.gz |
Add missing EVP_CIPHER_CTX_init call.
Diffstat (limited to 'crypto/asn1/p5_pbev2.c')
-rw-r--r-- | crypto/asn1/p5_pbev2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/p5_pbev2.c b/crypto/asn1/p5_pbev2.c index 43dfe09479..91e1c8987d 100644 --- a/crypto/asn1/p5_pbev2.c +++ b/crypto/asn1/p5_pbev2.c @@ -116,6 +116,8 @@ X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0) goto err; + EVP_CIPHER_CTX_init(&ctx); + /* Dummy cipherinit to just setup the IV */ EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0); if(EVP_CIPHER_param_to_asn1(&ctx, scheme->parameter) < 0) { |