From 1cf1ec55bc7647e737d7ec41bfe1def721269c02 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Tue, 6 Aug 2019 13:15:23 +0100 Subject: Support SSL verification through new about: handler In doing this, also propagate why the certificates were bad so that the page can display a reason. We will need FatMessages for all these. Signed-off-by: Daniel Silverstone --- utils/messages.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/messages.h') diff --git a/utils/messages.h b/utils/messages.h index 4024f7e77..635d6e8e4 100644 --- a/utils/messages.h +++ b/utils/messages.h @@ -36,6 +36,7 @@ #include #include "utils/errors.h" +#include "netsurf/ssl_certs.h" /** * Read keys and values from messages file into the standard Messages hash. @@ -78,6 +79,14 @@ const char *messages_get(const char *key); */ const char *messages_get_errorcode(nserror code); +/** + * lookup of a message by SSL error code from the standard Messages hash. + * + * \param code ssl error code + * \return message text + */ +const char *messages_get_sslcode(ssl_cert_err code); + /** * Formatted message from a key in the global message hash. * -- cgit v1.2.3