Commit 35970f56 authored by Amir Livneh's avatar Amir Livneh Committed by Facebook Github Bot

Add compatibility function for X509_STORE_up_ref()

Reviewed By: yfeldblum

Differential Revision: D7111876

fbshipit-source-id: eba9e29321e0ac89084ceae410bdcb4ebb86f91c
parent 65105e81
......@@ -64,6 +64,10 @@ int X509_up_ref(X509* x) {
return CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509);
}
int X509_STORE_up_ref(X509_STORE* v) {
return CRYPTO_add(&v->references, 1, CRYPTO_LOCK_X509_STORE);
}
int EVP_PKEY_up_ref(EVP_PKEY* evp) {
return CRYPTO_add(&evp->references, 1, CRYPTO_LOCK_EVP_PKEY);
}
......
......@@ -110,6 +110,7 @@ int X509_get_signature_nid(X509* cert);
int SSL_CTX_up_ref(SSL_CTX* session);
int SSL_SESSION_up_ref(SSL_SESSION* session);
int X509_up_ref(X509* x);
int X509_STORE_up_ref(X509_STORE* v);
int EVP_PKEY_up_ref(EVP_PKEY* evp);
void RSA_get0_key(
const RSA* r,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment