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 c6750ddec9 after the ldns update in
5afab0e5e5.

PR:		271615
Event:		Kitchener-Waterloo Hackathon 202305
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40082
This commit is contained in:
Pierre Pronchery 2023-05-12 19:38:18 -07:00 committed by Ed Maste
parent baef3a5b58
commit b238d51d0a

View file

@ -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 \