summaryrefslogtreecommitdiff
path: root/libfetch/Makefile
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/Makefile
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/Makefile')
-rw-r--r--libfetch/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfetch/Makefile b/libfetch/Makefile
index 618348d..12fead9 100644
--- a/libfetch/Makefile
+++ b/libfetch/Makefile
@@ -1,5 +1,5 @@
libs-y += libfetch.a
-libfetch.a-objs := common.o fetch.o file.o ftp.o http.o
+libfetch.a-objs := common.o fetch.o file.o ftp.o http.o openssl-compat.o
generate-y += ftperr.h httperr.h
CFLAGS_common.o += -DCA_CERT_FILE=\"$(CONFDIR)/ca.pem\" -DCA_CRL_FILE=\"$(CONFDIR)/crl.pem\"
CFLAGS_common.o += -DCLIENT_CERT_FILE=\"$(CONFDIR)/cert.pem\" -DCLIENT_KEY_FILE=\"$(CONFDIR)/cert.key\"