diff options
author | Vincent Sanders <vince@kyllikki.org> | 2020-05-09 22:42:12 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2020-05-09 22:42:12 +0100 |
commit | fbc0847db06fa91765d5b83b34dabee85f65d4ec (patch) | |
tree | 64815b720817fef78e3ce74694903aa927c2575a /include | |
parent | a98003674be06798ad4e7a6c59b99ee8674ea1fe (diff) | |
download | netsurf-fbc0847db06fa91765d5b83b34dabee85f65d4ec.tar.gz netsurf-fbc0847db06fa91765d5b83b34dabee85f65d4ec.tar.bz2 |
move ssl certificate serialisation into a url to the ssl_cert utility code
Diffstat (limited to 'include')
-rw-r--r-- | include/netsurf/ssl_certs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/netsurf/ssl_certs.h b/include/netsurf/ssl_certs.h index e3e418848..05ff13161 100644 --- a/include/netsurf/ssl_certs.h +++ b/include/netsurf/ssl_certs.h @@ -119,6 +119,14 @@ nserror cert_chain_dup(const struct cert_chain *src, struct cert_chain **dst_out nserror cert_chain_from_query(struct nsurl *url, struct cert_chain **chain_out); /** + * create a fetch query string from a certificate chain + * + * + * \return NSERROR_OK on success or NSERROR_NOMEM on memory exhaustion + */ +nserror cert_chain_to_query(struct cert_chain *chain, struct nsurl **url_out); + +/** * free a certificate chain * * \param chain The certificate chain to free |