From f172a21df9e5e5e73379a4a700957e965d872d3c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 23 Feb 2020 21:41:39 +0000 Subject: about scheme certificate viewer initial implementation --- include/netsurf/ssl_certs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/netsurf/ssl_certs.h') 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 * @@ -107,6 +109,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 * -- cgit v1.2.3