diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 20:29:57 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 23:18:55 +0100 |
commit | 05f0fb9f6acc34c82a082d7668572828925694e7 (patch) | |
tree | abed16eae5af33da7021280eb40f4db3f468849e /ssl/ssl_cert.c | |
parent | 65cbf983ca4f69b8954f949c2edaaa48824481b3 (diff) | |
download | openssl-05f0fb9f6acc34c82a082d7668572828925694e7.tar.gz |
Add X509_up_ref function.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 5e9b8ffe7a..11839612f2 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -250,7 +250,7 @@ CERT *ssl_cert_dup(CERT *cert) CERT_PKEY *rpk = ret->pkeys + i; if (cpk->x509 != NULL) { rpk->x509 = cpk->x509; - CRYPTO_add(&rpk->x509->references, 1, CRYPTO_LOCK_X509); + X509_up_ref(rpk->x509); } if (cpk->privatekey != NULL) { @@ -463,7 +463,7 @@ int ssl_cert_add1_chain_cert(SSL *s, SSL_CTX *ctx, X509 *x) { if (!ssl_cert_add0_chain_cert(s, ctx, x)) return 0; - CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509); + X509_up_ref(x); return 1; } |