aboutsummaryrefslogtreecommitdiff
path: root/lib/libfido2/Makefile
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-05-09 12:44:23 +0000
committerEd Maste <emaste@FreeBSD.org>2023-05-09 13:46:09 +0000
commit469c325a49dc5a522fed21e2ee8ff91e5c6e5c64 (patch)
treee2d67b470e0a0ca9c99d27cf8bd0ea498a8bb34f /lib/libfido2/Makefile
parentc543e09f1f8ef98f201f7dd3f34ae023d61dfa83 (diff)
downloadsrc-469c325a49dc5a522fed21e2ee8ff91e5c6e5c64.tar.gz
src-469c325a49dc5a522fed21e2ee8ff91e5c6e5c64.zip
libfido2: specify 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 libfido2 update may switch to use OpenSSL 3.0 APIs. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libfido2/Makefile')
-rw-r--r--lib/libfido2/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfido2/Makefile b/lib/libfido2/Makefile
index a9e1c526d45d..86ac1153f384 100644
--- a/lib/libfido2/Makefile
+++ b/lib/libfido2/Makefile
@@ -64,6 +64,7 @@ CFLAGS+= -DHAVE_SYS_RANDOM_H
CFLAGS+= -DHAVE_TIMESPECSUB
CFLAGS+= -DHAVE_TIMINGSAFE_BCMP
CFLAGS+= -DHAVE_UNISTD_H
+CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
CFLAGS+= -DTLS=__thread
CFLAGS+= -D_FIDO_MAJOR=1
CFLAGS+= -D_FIDO_MINOR=10