diff options
| author | schwarze <> | 2021-11-10 13:57:42 +0000 |
|---|---|---|
| committer | schwarze <> | 2021-11-10 13:57:42 +0000 |
| commit | 4ad963dd22e961a774e355b72d22c97240ce5c38 (patch) | |
| tree | ac9b43ba8da53df491ad7a1a945cc9e04e5380b5 /src/lib/libcrypto/x509/x509.h | |
| parent | 59ed3cb10da6ca313db2f76c371073f1db64cb1c (diff) | |
| download | openbsd-4ad963dd22e961a774e355b72d22c97240ce5c38.tar.gz openbsd-4ad963dd22e961a774e355b72d22c97240ce5c38.tar.bz2 openbsd-4ad963dd22e961a774e355b72d22c97240ce5c38.zip | |
If X509_load_cert_crl_file(3) does not find any certificates
and/or CRLs in the PEM input file (for example, if the file
is empty), provide an error message in addition to returning 0.
This merges another part of this OpenSSL commit,
which is still under a free license:
commit c0452248ea1a59a41023a4765ef7d9825e80a62b
Author: Rich Salz <rsalz@openssl.org>
Date: Thu Apr 20 15:33:42 2017 -0400
I did *not* add the similar message types X509_R_NO_CERTIFICATE_FOUND
and X509_R_NO_CRL_FOUND because both code inspection and testing
have shown that the code generating them is unreachable.
OK tb@
Diffstat (limited to 'src/lib/libcrypto/x509/x509.h')
| -rw-r--r-- | src/lib/libcrypto/x509/x509.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 4624628bf8..4b4bab8be8 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509.h,v 1.87 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.88 2021/11/10 13:57:42 schwarze Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1197,6 +1197,7 @@ void ERR_load_X509_strings(void); | |||
| 1197 | #define X509_R_LOADING_CERT_DIR 103 | 1197 | #define X509_R_LOADING_CERT_DIR 103 |
| 1198 | #define X509_R_LOADING_DEFAULTS 104 | 1198 | #define X509_R_LOADING_DEFAULTS 104 |
| 1199 | #define X509_R_METHOD_NOT_SUPPORTED 124 | 1199 | #define X509_R_METHOD_NOT_SUPPORTED 124 |
| 1200 | #define X509_R_NO_CERTIFICATE_OR_CRL_FOUND 136 | ||
| 1200 | #define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY 105 | 1201 | #define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY 105 |
| 1201 | #define X509_R_PUBLIC_KEY_DECODE_ERROR 125 | 1202 | #define X509_R_PUBLIC_KEY_DECODE_ERROR 125 |
| 1202 | #define X509_R_PUBLIC_KEY_ENCODE_ERROR 126 | 1203 | #define X509_R_PUBLIC_KEY_ENCODE_ERROR 126 |
