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 change should migrate to use the OpenSSL 3.0 APIs. PR: 271615 Reviewed by: emaste Event: Kitchener-Waterloo Hackathon 202305 Sponsored by: The FreeBSD Foundation
37 lines
850 B
Makefile
37 lines
850 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
OPENBSMDIR=${SRCTOP}/contrib/openbsm
|
|
.PATH: ${OPENBSMDIR}/bin/auditdistd
|
|
|
|
# Addition of auditdistd because otherwise generated parse.c can't find
|
|
# auditdistd.h. This seems like a makefile non-feature.
|
|
CFLAGS+=-I${OPENBSMDIR} -I${OPENBSMDIR}/bin/auditdistd
|
|
|
|
CFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L
|
|
|
|
NO_WFORMAT=
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
PROG= auditdistd
|
|
SRCS= auditdistd.c
|
|
SRCS+= parse.y pjdlog.c
|
|
SRCS+= proto.c proto_common.c proto_socketpair.c proto_tcp.c proto_tls.c
|
|
SRCS+= receiver.c
|
|
SRCS+= sandbox.c sender.c subr.c
|
|
SRCS+= token.l trail.c
|
|
MAN= auditdistd.8 auditdistd.conf.5
|
|
|
|
LIBADD+= pthread util crypto ssl
|
|
|
|
YFLAGS+=-v
|
|
|
|
CLEANFILES=parse.c parse.h parse.output
|
|
|
|
# auditdistd cannot use FreeBSD specific lock annotation macros. Disable
|
|
# thread safety analysis completely.
|
|
NO_WTHREAD_SAFETY=
|
|
|
|
.include <bsd.prog.mk>
|