summaryrefslogtreecommitdiff
path: root/lib/libfetch/common.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-06-05 21:35:35 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-06-05 21:35:35 +0000
commit3070f6cb064bd947d7bb60f555f9e6e9c2d5ad20 (patch)
tree0509c1c0fc4b92c600c8202a518165929fa017e2 /lib/libfetch/common.h
parenteb5cb11b701be7e684b8dcd1775dba39a0b0e917 (diff)
Notes
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r--lib/libfetch/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h
index 06a805ff0a24..d279e4d01ae3 100644
--- a/lib/libfetch/common.h
+++ b/lib/libfetch/common.h
@@ -36,11 +36,13 @@
#define FTP_DEFAULT_PROXY_PORT 21
#define HTTP_DEFAULT_PROXY_PORT 3128
+#ifdef WITH_SSL
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
+#endif
/* Connection */
typedef struct fetchconn conn_t;
@@ -50,10 +52,12 @@ struct fetchconn {
size_t bufsize; /* buffer size */
size_t buflen; /* length of buffer contents */
int err; /* last protocol reply code */
+#ifdef WITH_SSL
SSL *ssl; /* SSL handle */
SSL_CTX *ssl_ctx; /* SSL context */
X509 *ssl_cert; /* server certificate */
SSL_METHOD *ssl_meth; /* SSL method */
+#endif
};
/* Structure used for error message lists */