summaryrefslogtreecommitdiff
path: root/include/netsurf
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2020-02-23 21:41:39 +0000
committerVincent Sanders <vince@kyllikki.org>2020-02-24 16:59:18 +0000
commitf172a21df9e5e5e73379a4a700957e965d872d3c (patch)
tree4d28630ef0092b5b70ac2dac847cc7c218d13c63 /include/netsurf
parent5c205fbff0a307bf04439ed884b5c294873ef1f2 (diff)
downloadnetsurf-f172a21df9e5e5e73379a4a700957e965d872d3c.tar.gz
netsurf-f172a21df9e5e5e73379a4a700957e965d872d3c.tar.bz2
about scheme certificate viewer initial implementation
Diffstat (limited to 'include/netsurf')
-rw-r--r--include/netsurf/ssl_certs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/netsurf/ssl_certs.h b/include/netsurf/ssl_certs.h
index b5e79abd5..e3e418848 100644
--- a/include/netsurf/ssl_certs.h
+++ b/include/netsurf/ssl_certs.h
@@ -25,6 +25,8 @@
#ifndef NETSURF_SSL_CERTS_H_
#define NETSURF_SSL_CERTS_H_
+struct nsurl;
+
/**
* ssl certificate error status
*
@@ -108,6 +110,15 @@ nserror cert_chain_dup_into(const struct cert_chain *src, struct cert_chain *dst
nserror cert_chain_dup(const struct cert_chain *src, struct cert_chain **dst_out);
/**
+ * create a certificate chain from a fetch query string
+ *
+ * \param url The url to convert the query from
+ * \param dst_out A pointer to recive the duplicated chain
+ * \return NSERROR_OK on success or NSERROR_NOMEM on memory exhaustion
+ */
+nserror cert_chain_from_query(struct nsurl *url, struct cert_chain **chain_out);
+
+/**
* free a certificate chain
*
* \param chain The certificate chain to free