From 531fea4c9082d6542c776dcb6d4ca0a3949ecdd0 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Thu, 5 Oct 2017 13:47:36 +0300 Subject: libfetch: remove unwanted code conditionals --- libfetch/common.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'libfetch/common.h') diff --git a/libfetch/common.h b/libfetch/common.h index 9a07e35..e36027c 100644 --- a/libfetch/common.h +++ b/libfetch/common.h @@ -37,13 +37,11 @@ #define FTP_DEFAULT_PROXY_PORT 21 #define HTTP_DEFAULT_PROXY_PORT 3128 -#ifdef WITH_SSL #include #include #include #include #include -#endif #if defined(__GNUC__) && __GNUC__ >= 3 #define LIBFETCH_PRINTFLIKE(fmtarg, firstvararg) \ @@ -70,19 +68,11 @@ struct fetchconn { char *next_buf; /* pending buffer, e.g. after getln */ size_t next_len; /* size of pending buffer */ int err; /* last protocol reply code */ -#ifdef WITH_SSL SSL *ssl; /* SSL handle */ SSL_CTX *ssl_ctx; /* SSL context */ X509 *ssl_cert; /* server certificate */ -# if OPENSSL_VERSION_NUMBER < 0x00909000L - SSL_METHOD *ssl_meth; /* SSL method */ -# else const SSL_METHOD *ssl_meth; /* SSL method */ -# endif -#endif - char *ftp_home; - struct url *cache_url; int cache_af; int (*cache_close)(conn_t *); -- cgit v1.2.3-60-g2f50