libfetch: merge TLS SNI support from NetBSD with some other random changes.

Close GH #41
This commit is contained in:
Juan RP
2014-06-28 12:01:00 +02:00
parent 32161d5dd9
commit 633c20a2e6
4 changed files with 30 additions and 6 deletions

View File

@ -98,7 +98,7 @@ conn_t *fetch_cache_get(const struct url *, int);
void fetch_cache_put(conn_t *, int (*)(conn_t *));
conn_t *fetch_connect(struct url *, int, int);
conn_t *fetch_reopen(int);
int fetch_ssl(conn_t *, int);
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 void *, size_t);