]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ts/ts_rsp_sign.c
make EVP_PKEY opaque
[thirdparty/openssl.git] / crypto / ts / ts_rsp_sign.c
index f84555d8fcc06957f406cc7612669e32c27a1306..aa8ef167f266d540845e46f7287ad668a4b56b2a 100644 (file)
@@ -212,7 +212,7 @@ int TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key)
 {
     EVP_PKEY_free(ctx->signer_key);
     ctx->signer_key = key;
-    CRYPTO_add(&ctx->signer_key->references, +1, CRYPTO_LOCK_EVP_PKEY);
+    EVP_PKEY_up_ref(ctx->signer_key);
 
     return 1;
 }