git: bebe2fea1946 - stable/14 - openssh: Request the OpenSSL 1.1 API

From: Jose Luis Duran <jlduran_at_FreeBSD.org>
Date: Thu, 03 Apr 2025 04:39:50 UTC
The branch stable/14 has been updated by jlduran:

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

commit bebe2fea194624ce2116eadb48e5b99f29f48a14
Author:     Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-03-27 00:19:14 +0000
Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-04-03 04:33:21 +0000

    openssh: Request the OpenSSL 1.1 API
    
    Upstream OpenSSH commit f51423bda ("request 1.1x API compatibility for
    OpenSSL >=3.x") requests OPENSSL_API_COMPAT version 0x10100000L (OpenSSL
    1.1.0), in order to avoid warnings about deprecated functions.
    
    Do the same here, to avoid getting those warnings.
    
    Reviewed by:    emaste
    Approved by:    emaste (mentor)
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D49517
    
    (cherry picked from commit d4f438357e90ee1cb12819d092913fdbce813626)
---
 secure/ssh.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/secure/ssh.mk b/secure/ssh.mk
index 8411fb11fb16..f522e1a927fc 100644
--- a/secure/ssh.mk
+++ b/secure/ssh.mk
@@ -24,3 +24,5 @@ CFLAGS+= -DLIBWRAP=1
 # Built-in security key support
 CFLAGS+= -include sk_config.h
 .endif
+
+CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L