diff options
| author | tb <> | 2021-11-01 20:53:08 +0000 |
|---|---|---|
| committer | tb <> | 2021-11-01 20:53:08 +0000 |
| commit | f478d62658b61e2242dbf3575bf454f8c0f432b1 (patch) | |
| tree | cbf2de4e6ef2a9e9d9281e6e60c30149cd648fd1 /src/lib/libcrypto/x509/x509cset.c | |
| parent | b5a22e689a6f2534ae4b6d7fe4bf885792892295 (diff) | |
| download | openbsd-f478d62658b61e2242dbf3575bf454f8c0f432b1.tar.gz openbsd-f478d62658b61e2242dbf3575bf454f8c0f432b1.tar.bz2 openbsd-f478d62658b61e2242dbf3575bf454f8c0f432b1.zip | |
Move the now internal X.509-related structs into x509_lcl.h.
Garbage collect the now unused LIBRESSL_CRYPTO_INTERNAL and
LIBRESSL_OPAQUE_X509. Include "x509_lcl.h" where needed and
fix a couple of unnecessary reacharounds.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509cset.c')
| -rw-r--r-- | src/lib/libcrypto/x509/x509cset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509cset.c b/src/lib/libcrypto/x509/x509cset.c index 98fbdc2025..b3af77d90e 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.15 2021/10/23 11:56:10 tb Exp $ */ | 1 | /* $OpenBSD: x509cset.c,v 1.16 2021/11/01 20:53:08 tb 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 | */ |
| @@ -63,8 +63,10 @@ | |||
| 63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
| 64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
| 65 | 65 | ||
| 66 | #include "x509_lcl.h" | ||
| 67 | |||
| 66 | int | 68 | int |
| 67 | X509_CRL_up_ref(X509_CRL *x) | 69 | X509_CRL_up_ref(X509_CRL *x) |
| 68 | { | 70 | { |
| 69 | int refs = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); | 71 | int refs = CRYPTO_add(&x->references, 1, CRYPTO_LOCK_X509_CRL); |
| 70 | return (refs > 1) ? 1 : 0; | 72 | return (refs > 1) ? 1 : 0; |
