diff options
author | des <des@FreeBSD.org> | 2002-06-05 21:35:35 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-06-05 21:35:35 +0000 |
commit | 0642a9650fe4b6103c0451e05fb070f112e607df (patch) | |
tree | 0509c1c0fc4b92c600c8202a518165929fa017e2 /lib/libfetch/common.h | |
parent | 6a22781391d2cbe7ac126b3a82e84ccf075507a3 (diff) | |
download | FreeBSD-src-0642a9650fe4b6103c0451e05fb070f112e607df.zip FreeBSD-src-0642a9650fe4b6103c0451e05fb070f112e607df.tar.gz |
Make SSL support conditional on NOCRYPT.
Diffstat (limited to 'lib/libfetch/common.h')
-rw-r--r-- | lib/libfetch/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libfetch/common.h b/lib/libfetch/common.h index 06a805f..d279e4d 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 */ |