diff options
author | des <des@FreeBSD.org> | 2013-07-26 15:53:43 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-07-26 15:53:43 +0000 |
commit | 29d3efe0a8f20e5159be92b6c7f7d4df1ae20fb6 (patch) | |
tree | 32ac08bdbf604e15cdc8a4fde525025706cccbb6 /lib/libfetch/common.h | |
parent | 28a30460d2a26ca703993458e0e3fadfa637e231 (diff) | |
download | FreeBSD-src-29d3efe0a8f20e5159be92b6c7f7d4df1ae20fb6.zip FreeBSD-src-29d3efe0a8f20e5159be92b6c7f7d4df1ae20fb6.tar.gz |
Implement certificate verification, and many other SSL-related
imrovements; complete details in the PR.
PR: kern/175514
Submitted by: Michael Gmelin <freebsd@grem.de>
MFC after: 1 week
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index fe591d3..1d543a6 100644 --- a/lib/libfetch/common.h +++ b/lib/libfetch/common.h @@ -87,7 +87,10 @@ int fetch_bind(int, int, const char *); conn_t *fetch_connect(const char *, int, int, int); conn_t *fetch_reopen(int); conn_t *fetch_ref(conn_t *); -int fetch_ssl(conn_t *, int); +#ifdef WITH_SSL +int fetch_ssl_cb_verify_crt(int, X509_STORE_CTX*); +#endif +int fetch_ssl(conn_t *, const struct url *, int); ssize_t fetch_read(conn_t *, char *, size_t); int fetch_getln(conn_t *); ssize_t fetch_write(conn_t *, const char *, size_t); |