summaryrefslogtreecommitdiff
path: root/utils/messages.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-06 13:15:23 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-06 13:15:23 +0100
commit1cf1ec55bc7647e737d7ec41bfe1def721269c02 (patch)
tree7fd4c9bdfe1d14789dbbe3eba696bba761dabf74 /utils/messages.h
parent75349e79d82c43b9731b9349364f467c81fce94b (diff)
downloadnetsurf-1cf1ec55bc7647e737d7ec41bfe1def721269c02.tar.gz
netsurf-1cf1ec55bc7647e737d7ec41bfe1def721269c02.tar.bz2
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 <dsilvers@digital-scurf.org>
Diffstat (limited to 'utils/messages.h')
-rw-r--r--utils/messages.h9
1 files changed, 9 insertions, 0 deletions
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 <stdint.h>
#include "utils/errors.h"
+#include "netsurf/ssl_certs.h"
/**
* Read keys and values from messages file into the standard Messages hash.
@@ -79,6 +80,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.
*
* \param key key of message