git: b238d51d0adc - main - ldns: specify OpenSSL 1.1 APIs

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 25 May 2023 02:17:04 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=b238d51d0adc43e2bab347e5ef13c323c1857c5e

commit b238d51d0adc43e2bab347e5ef13c323c1857c5e
Author:     Pierre Pronchery <pierre@freebsdfoundation.org>
AuthorDate: 2023-05-13 02:38:18 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-05-25 02:16:48 +0000

    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
---
 lib/libldns/Makefile | 1 +
 1 file changed, 1 insertion(+)

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 \