summaryrefslogtreecommitdiffstats
path: root/crypto/cms/cms_kari.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-19 01:21:12 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-01-20 04:24:59 +0100
commit3aeb93486588e7dd01379c50b8fd496d55cf8858 (patch)
treee5d5793ef4786dbfac5c724e8235a3aa1ce323b2 /crypto/cms/cms_kari.c
parentRemove the GOST engine (diff)
downloadopenssl-3aeb93486588e7dd01379c50b8fd496d55cf8858.tar.xz
openssl-3aeb93486588e7dd01379c50b8fd496d55cf8858.zip
make EVP_PKEY opaque
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/cms/cms_kari.c')
-rw-r--r--crypto/cms/cms_kari.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_kari.c b/crypto/cms/cms_kari.c
index 1355322710..a8dc9ab72e 100644
--- a/crypto/cms/cms_kari.c
+++ b/crypto/cms/cms_kari.c
@@ -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;
}