]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/cms/cms_kari.c
make EVP_PKEY opaque
[thirdparty/openssl.git] / crypto / cms / cms_kari.c
index 13553227103e75d7b4cbe2462aec6d7bdbd13f6e..a8dc9ab72e34be7b1e3512cae997587736c0672c 100644 (file)
@@ -367,7 +367,7 @@ int cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip,
     if (!cms_kari_create_ephemeral_key(kari, pk))
         return 0;
 
-    CRYPTO_add(&pk->references, 1, CRYPTO_LOCK_EVP_PKEY);
+    EVP_PKEY_up_ref(pk);
     rek->pkey = pk;
     return 1;
 }