diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2016-03-01 18:06:15 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-08 11:10:34 -0500 |
commit | c001ce33137993a0c4ff15060ed1639826bfca0b (patch) | |
tree | 0589954d36d7138b51b4e9906a2d728e9c25669c /crypto/x509/x509cset.c | |
parent | 41cfbccc99f3ca3c9f656d8c71e2db5bcfcf6817 (diff) |
Convert CRYPTO_LOCK_X509_* to new multi-threading API
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/x509cset.c')
-rw-r--r-- | crypto/x509/x509cset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x509cset.c b/crypto/x509/x509cset.c index bc14374d06..ab5f192a15 100644 --- a/crypto/x509/x509cset.c +++ b/crypto/x509/x509cset.c @@ -134,7 +134,8 @@ int X509_CRL_sort(X509_CRL *c) void X509_CRL_up_ref(X509_CRL *crl) { - CRYPTO_add(&crl->references, 1, CRYPTO_LOCK_X509_CRL); + int i; + CRYPTO_atomic_add(&crl->references, 1, &i, crl->lock); } long X509_CRL_get_version(X509_CRL *crl) |