summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-10 12:50:23 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-10 12:50:23 +0100
commit98f45250734fc7a2826753a143d7c37fc522f604 (patch)
tree1826b42c9a1e3456ccbaf0790b566225945a2faa /utils
parentc6a2c76867cbb6f108eb31e8eb9df0db51114dd5 (diff)
downloadnetsurf-98f45250734fc7a2826753a143d7c37fc522f604.tar.gz
netsurf-98f45250734fc7a2826753a143d7c37fc522f604.tar.bz2
add common name ssl certificate error
This adds an ssl faliure code and explanation why curl fetcher does not currently set it.
Diffstat (limited to 'utils')
-rw-r--r--utils/messages.c5
1 files changed, 5 insertions, 0 deletions
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