diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-10 12:50:23 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-10 12:50:23 +0100 |
commit | 98f45250734fc7a2826753a143d7c37fc522f604 (patch) | |
tree | 1826b42c9a1e3456ccbaf0790b566225945a2faa /utils | |
parent | c6a2c76867cbb6f108eb31e8eb9df0db51114dd5 (diff) | |
download | netsurf-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.c | 5 |
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 |