diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509cset.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index 88de63debd..3fc31cd519 100644 --- a/src/lib/libcrypto/x509/x509cset.c +++ b/src/lib/libcrypto/x509/x509cset.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509cset.c,v 1.12 2018/02/22 16:47:50 jsing Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.13 2018/02/22 16:53:42 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -64,6 +64,13 @@ | |||
| 64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
| 65 | 65 | ||
| 66 | int | 66 | int |
| 67 | X509_CRL_up_ref(X509_CRL *x) | ||
| 68 | { | ||
| 69 | int refs = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); | ||
| 70 | return (refs > 1) ? 1 : 0; | ||
| 71 | } | ||
| 72 | |||
| 73 | int | ||
| 67 | X509_CRL_set_version(X509_CRL *x, long version) | 74 | X509_CRL_set_version(X509_CRL *x, long version) |
| 68 | { | 75 | { |
| 69 | if (x == NULL) | 76 | if (x == NULL) |
