diff options
| author | jsing <> | 2018-02-22 16:53:42 +0000 |
|---|---|---|
| committer | jsing <> | 2018-02-22 16:53:42 +0000 |
| commit | 7d56ddb1c23469ea369cb6c35fa9bcccf3324fa4 (patch) | |
| tree | 7e3d46251997d49a762a00da772b5b4c06abe2c6 /src/lib/libcrypto/x509/x509cset.c | |
| parent | 0e70c1424cfd8c4191fc2f6ad92dcd04051f49be (diff) | |
| download | openbsd-7d56ddb1c23469ea369cb6c35fa9bcccf3324fa4.tar.gz openbsd-7d56ddb1c23469ea369cb6c35fa9bcccf3324fa4.tar.bz2 openbsd-7d56ddb1c23469ea369cb6c35fa9bcccf3324fa4.zip | |
Provide X509_CRL_up_ref().
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) |
