summaryrefslogtreecommitdiff
path: root/include/netsurf/ssl_certs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netsurf/ssl_certs.h')
-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