diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 20:30:20 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 23:18:54 +0100 |
commit | 65cbf983ca4f69b8954f949c2edaaa48824481b3 (patch) | |
tree | 00e276634405fbab27f99c8879fcf7f2a77cb111 /crypto/cms | |
parent | a7e974c7be90e2c9673e2ce6215a70f734eb8ad4 (diff) |
Add X509_CRL_up_ref function
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/cms')
-rw-r--r-- | crypto/cms/cms_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cms/cms_lib.c b/crypto/cms/cms_lib.c index 8525ff8cf6..e698c006bf 100644 --- a/crypto/cms/cms_lib.c +++ b/crypto/cms/cms_lib.c @@ -517,7 +517,7 @@ int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl) int r; r = CMS_add0_crl(cms, crl); if (r > 0) - CRYPTO_add(&crl->references, 1, CRYPTO_LOCK_X509_CRL); + X509_CRL_up_ref(crl); return r; } @@ -570,7 +570,7 @@ STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms) sk_X509_CRL_pop_free(crls, X509_CRL_free); return NULL; } - CRYPTO_add(&rch->d.crl->references, 1, CRYPTO_LOCK_X509_CRL); + X509_CRL_up_ref(rch->d.crl); } } return crls; |