diff options
author | tb <> | 2022-07-05 20:31:46 +0000 |
---|---|---|
committer | tb <> | 2022-07-05 20:31:46 +0000 |
commit | 002fa622c668664946f8042a8f090fbf06f50b48 (patch) | |
tree | dbd904a1b8ecd48762a918777972caf017b1b748 /src | |
parent | db134c57ab90ca87802cfd705dab7fa6e929c429 (diff) | |
download | openbsd-002fa622c668664946f8042a8f090fbf06f50b48.tar.gz openbsd-002fa622c668664946f8042a8f090fbf06f50b48.tar.bz2 openbsd-002fa622c668664946f8042a8f090fbf06f50b48.zip |
Add missing X509_V_ERR_ strings using the ones from OpenSSL.
The well-known masters of consistency of course use strings that don't
match the names of the errors.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_txt.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_txt.c b/src/lib/libcrypto/x509/x509_txt.c index 14fa2378c4..2dfadf6ba6 100644 --- a/src/lib/libcrypto/x509/x509_txt.c +++ b/src/lib/libcrypto/x509/x509_txt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_txt.c,v 1.19 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: x509_txt.c,v 1.20 2022/07/05 20:31:46 tb 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 | * |
@@ -181,6 +181,22 @@ X509_verify_cert_error_string(long n) | |||
181 | return("unsupported or invalid name syntax"); | 181 | return("unsupported or invalid name syntax"); |
182 | case X509_V_ERR_CRL_PATH_VALIDATION_ERROR: | 182 | case X509_V_ERR_CRL_PATH_VALIDATION_ERROR: |
183 | return("CRL path validation error"); | 183 | return("CRL path validation error"); |
184 | case X509_V_ERR_HOSTNAME_MISMATCH: | ||
185 | return("Hostname mismatch"); | ||
186 | case X509_V_ERR_EMAIL_MISMATCH: | ||
187 | return("Email address mismatch"); | ||
188 | case X509_V_ERR_IP_ADDRESS_MISMATCH: | ||
189 | return("IP address mismatch"); | ||
190 | case X509_V_ERR_INVALID_CALL: | ||
191 | return("Invalid certificate verification context"); | ||
192 | case X509_V_ERR_STORE_LOOKUP: | ||
193 | return("Issuer certificate lookup error"); | ||
194 | case X509_V_ERR_EE_KEY_TOO_SMALL: | ||
195 | return("EE certificate key too weak"); | ||
196 | case X509_V_ERR_CA_KEY_TOO_SMALL: | ||
197 | return("CA certificate key too weak"); | ||
198 | case X509_V_ERR_CA_MD_TOO_WEAK: | ||
199 | return("CA signature digest algorithm too weak"); | ||
184 | 200 | ||
185 | default: | 201 | default: |
186 | (void) snprintf(buf, sizeof buf, "error number %ld", n); | 202 | (void) snprintf(buf, sizeof buf, "error number %ld", n); |