git: 07523f1d4fae - main - libradius: specify OpenSSL 1.1 APIs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 May 2023 17:16:59 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=07523f1d4fae44967b274175d48480fafb6d9f34
commit 07523f1d4fae44967b274175d48480fafb6d9f34
Author: Pierre Pronchery <pierre@freebsdfoundation.org>
AuthorDate: 2023-05-25 05:42:38 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-05-25 17:15:45 +0000
libradius: 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.
Future work should migrate to use the OpenSSL 3.0 APIs.
PR: 271615
Reviewed by: emaste
Event: Kitchener-Waterloo Hackathon 202305
Sponsored by: The FreeBSD Foundation
---
lib/libradius/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/libradius/Makefile b/lib/libradius/Makefile
index 42f5def20ef1..d10e67c7224b 100644
--- a/lib/libradius/Makefile
+++ b/lib/libradius/Makefile
@@ -30,6 +30,7 @@ LIB= radius
SRCS= radlib.c
INCS= radlib.h radlib_vs.h
CFLAGS+= -Wall
+CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
SHLIB_MAJOR= 4
MAN= libradius.3 radius.conf.5