diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-06 13:15:23 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-08-06 13:15:23 +0100 |
commit | 1cf1ec55bc7647e737d7ec41bfe1def721269c02 (patch) | |
tree | 7fd4c9bdfe1d14789dbbe3eba696bba761dabf74 /content/fetch.h | |
parent | 75349e79d82c43b9731b9349364f467c81fce94b (diff) | |
download | netsurf-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 'content/fetch.h')
-rw-r--r-- | content/fetch.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/content/fetch.h b/content/fetch.h index 7c02fb0d7..66be857f8 100644 --- a/content/fetch.h +++ b/content/fetch.h @@ -28,6 +28,7 @@ #include "utils/config.h" #include "utils/nsurl.h" #include "utils/inet.h" +#include "netsurf/ssl_certs.h" struct content; struct fetch; @@ -88,23 +89,6 @@ struct fetch_multipart_data { bool file; /**< Item is a file */ }; -/** - * ssl certificate information for certificate error message - */ -struct ssl_cert_info { - long version; /**< Certificate version */ - char not_before[32]; /**< Valid from date */ - char not_after[32]; /**< Valid to date */ - int sig_type; /**< Signature type */ - char serialnum[64]; /**< Serial number */ - char issuer[256]; /**< Issuer details */ - char subject[256]; /**< Subject details */ - int cert_type; /**< Certificate type */ -}; - -/** maximum number of X509 certificates in chain for TLS connection */ -#define MAX_SSL_CERTS 10 - typedef void (*fetch_callback)(const fetch_msg *msg, void *p); /** |