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/ocsp/ocsp_cl.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/ocsp/ocsp_cl.c')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_cl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_cl.c b/src/lib/libcrypto/ocsp/ocsp_cl.c index 677a1b35dd..da4b5ad04c 100644 --- a/src/lib/libcrypto/ocsp/ocsp_cl.c +++ b/src/lib/libcrypto/ocsp/ocsp_cl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp_cl.c,v 1.18 2021/10/24 13:50:14 tb Exp $ */ | 1 | /* $OpenBSD: ocsp_cl.c,v 1.19 2021/11/01 20:53:08 tb Exp $ */ |
| 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL | 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL |
| 3 | * project. */ | 3 | * project. */ |
| 4 | 4 | ||
| @@ -136,7 +136,7 @@ OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert) | |||
| 136 | 136 | ||
| 137 | if (!sk_X509_push(sig->certs, cert)) | 137 | if (!sk_X509_push(sig->certs, cert)) |
| 138 | return 0; | 138 | return 0; |
| 139 | CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509); | 139 | X509_up_ref(cert); |
| 140 | return 1; | 140 | return 1; |
| 141 | } | 141 | } |
| 142 | 142 | ||
