aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Pronchery <pierre@freebsdfoundation.org>2023-05-13 02:38:18 +0000
committerEd Maste <emaste@FreeBSD.org>2023-05-25 02:16:48 +0000
commitb238d51d0adc43e2bab347e5ef13c323c1857c5e (patch)
tree94e257aa985e88e84c4a1c2e1bbf82cf2e4e4499
parentbaef3a5b585f462d9256f3b5a771ab5508ef6fd2 (diff)
downloadsrc-b238d51d0adc43e2bab347e5ef13c323c1857c5e.tar.gz
src-b238d51d0adc43e2bab347e5ef13c323c1857c5e.zip
ldns: specify OpenSSL 1.1 APIs
OPENSSL_API_COMPAT can be used to specify the OpenSSL API version in use for the purpose of hiding deprecated interfaces and enabling the appropriate deprecation notices. This change is a NFC while we're still using OpenSSL 1.1.1 but will avoid deprecation warnings upon the switch to OpenSSL 3.0. A future ldns update should migrate to use the OpenSSL 3.0 APIs. This is a recommit of c6750ddec917 after the ldns update in 5afab0e5e56f. PR: 271615 Event: Kitchener-Waterloo Hackathon 202305 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40082
-rw-r--r--lib/libldns/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libldns/Makefile b/lib/libldns/Makefile
index 5764089e60a1..7714db950f00 100644
--- a/lib/libldns/Makefile
+++ b/lib/libldns/Makefile
@@ -10,6 +10,7 @@ LIB= ldns
PRIVATELIB= true
CFLAGS+= -I${LDNSDIR}
+CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
SRCS= buffer.c dane.c dname.c dnssec.c dnssec_sign.c dnssec_verify.c \
dnssec_zone.c duration.c edns.c error.c higher.c host2str.c \