From 98f45250734fc7a2826753a143d7c37fc522f604 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 10 Aug 2019 12:50:23 +0100 Subject: add common name ssl certificate error This adds an ssl faliure code and explanation why curl fetcher does not currently set it. --- utils/messages.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils') diff --git a/utils/messages.c b/utils/messages.c index 29443f99e..c4a7959cf 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -382,6 +382,11 @@ const char *messages_get_sslcode(ssl_cert_err code) case SSL_CERT_ERR_REVOKED: /* This certificate has been revoked */ return messages_get_ctx("SSLCertErrRevoked", messages_hash); + + case SSL_CERT_ERR_COMMON_NAME: + /* Common name is invalid */ + return messages_get_ctx("SSLCertErrCommonName", messages_hash); + } /* The switch has no default, so the compiler should tell us when we -- cgit v1.2.3