]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/asn1/p5_pbev2.c
Modify EVP cipher behaviour in a similar way
[thirdparty/openssl.git] / crypto / asn1 / p5_pbev2.c
index cd597ff41889c35812c8b3786510c8157c2bf3db..43dfe09479f2a63d6b6d363bb89c3ddfdeacbd85 100644 (file)
@@ -117,7 +117,7 @@ X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
                goto err;
 
        /* Dummy cipherinit to just setup the IV */
-       EVP_CipherInit(&ctx, cipher, NULL, iv, 0);
+       EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0);
        if(EVP_CIPHER_param_to_asn1(&ctx, scheme->parameter) < 0) {
                ASN1err(ASN1_F_PKCS5_PBE2_SET,
                                        ASN1_R_ERROR_SETTING_CIPHER_PARAMS);