diff options
-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); |