git: e730066a64e6 - main - decryptcore: Request the OpenSSL 1.1 API

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 17:49:16 UTC
The branch main has been updated by emaste:

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

commit e730066a64e60b3ba39b7143aa40b5ba1e9c3949
Author:     Pierre Pronchery <pierre@freebsdfoundation.org>
AuthorDate: 2023-06-01 19:07:23 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-06-05 17:48:05 +0000

    decryptcore: Request the OpenSSL 1.1 API
    
    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 update may migrate to use the OpenSSL 3.0 APIs.
    
    PR:             271615
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
---
 sbin/decryptcore/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/decryptcore/Makefile b/sbin/decryptcore/Makefile
index 3a3a6a029f87..afaa0311ae50 100644
--- a/sbin/decryptcore/Makefile
+++ b/sbin/decryptcore/Makefile
@@ -2,6 +2,7 @@
 
 PROG=	decryptcore
 
+CFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L
 LIBADD=	crypto pjdlog
 
 MAN=	decryptcore.8