]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - ssl/ssl_cert.c
make EVP_PKEY opaque
[thirdparty/openssl.git] / ssl / ssl_cert.c
index 75ccc72414442a8577c659959f37a15f42826485..2aaf99cc239fa6898868fd788655b9c07a57207a 100644 (file)
@@ -214,7 +214,7 @@ CERT *ssl_cert_dup(CERT *cert)
 
         if (cpk->privatekey != NULL) {
             rpk->privatekey = cpk->privatekey;
-            CRYPTO_add(&cpk->privatekey->references, 1, CRYPTO_LOCK_EVP_PKEY);
+            EVP_PKEY_up_ref(cpk->privatekey);
         }
 
         if (cpk->chain) {