summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-06-05 12:46:36 +0000
committerdes <des@FreeBSD.org>2002-06-05 12:46:36 +0000
commitce6d4c4a6e426fbee036993034abddf7975be771 (patch)
tree9329a9d7ff9e99806101b26229c66f397ccc0f8c /lib/libfetch/common.h
parent12c36bfb94e95d0f9c4ebb1e1e407ca44b3f9c24 (diff)
downloadFreeBSD-src-ce6d4c4a6e426fbee036993034abddf7975be771.zip
FreeBSD-src-ce6d4c4a6e426fbee036993034abddf7975be771.tar.gz
Add SSL support + slight cleanup.
Submitted by: Henry Whincup <henry@techiebod.com> (in principle)
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r--lib/libfetch/common.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h
index 8b2a026..06a805f 100644
--- a/lib/libfetch/common.h
+++ b/lib/libfetch/common.h
@@ -57,7 +57,7 @@ struct fetchconn {
};
/* Structure used for error message lists */
-struct fetcherr {
+struct fetcherr {
const int num;
const int cat;
const char *string;
@@ -69,7 +69,8 @@ void _fetch_info(const char *, ...);
int _fetch_default_port(const char *);
int _fetch_default_proxy_port(const char *);
conn_t *_fetch_connect(const char *, int, int, int);
-conn_t *_fetch_reopen(int sd);
+conn_t *_fetch_reopen(int);
+int _fetch_ssl(conn_t *, 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);
OpenPOWER on IntegriCloud