summaryrefslogtreecommitdiff
path: root/libfetch/common.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-10-06 13:23:54 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-10-06 13:25:27 +0300
commiteb8f44d629aca3a780f7feedfee11794f14082ad (patch)
treec6e198874a9063881e6bba27d1e48d755e8e240c /libfetch/common.h
parent52fd85a8dcfee9c93522d80693673bc95cc1caaf (diff)
downloadapk-tools-eb8f44d629aca3a780f7feedfee11794f14082ad.tar.gz
apk-tools-eb8f44d629aca3a780f7feedfee11794f14082ad.tar.bz2
apk-tools-eb8f44d629aca3a780f7feedfee11794f14082ad.tar.xz
apk-tools-eb8f44d629aca3a780f7feedfee11794f14082ad.zip
libfetch: improve openssl/libressl compatibility
X509_check_host() is introduced in libressl-2.5.0 and openssl-1.0.2 which are not yet universally available. Add support for building against the older versions.
Diffstat (limited to 'libfetch/common.h')
-rw-r--r--libfetch/common.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libfetch/common.h b/libfetch/common.h
index b643a34..d7ad1d6 100644
--- a/libfetch/common.h
+++ b/libfetch/common.h
@@ -37,12 +37,7 @@
#define FTP_DEFAULT_PROXY_PORT 21
#define HTTP_DEFAULT_PROXY_PORT 3128
-#include <openssl/crypto.h>
-#include <openssl/x509.h>
-#include <openssl/x509v3.h>
-#include <openssl/pem.h>
-#include <openssl/ssl.h>
-#include <openssl/err.h>
+#include "openssl-compat.h"
#if defined(__GNUC__) && __GNUC__ >= 3
#define LIBFETCH_PRINTFLIKE(fmtarg, firstvararg) \