summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>2000-03-02 13:27:25 +0000
committerfenner <fenner@FreeBSD.org>2000-03-02 13:27:25 +0000
commitc5911d1b71e44b3dfef687e70a8c08103bde8045 (patch)
tree6385fd56ccec9a824cb598bbddb5a5b3d2dbe89e /usr.sbin/tcpdump
parent3cbaf1b529cd5c536b4a6ec10557f2b5156b756a (diff)
downloadFreeBSD-src-c5911d1b71e44b3dfef687e70a8c08103bde8045.zip
FreeBSD-src-c5911d1b71e44b3dfef687e70a8c08103bde8045.tar.gz
Make crypto part of tcpdump (print-esp.c) work.
Approved by: jkh
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/tcpdump/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/tcpdump/tcpdump/Makefile b/usr.sbin/tcpdump/tcpdump/Makefile
index 4d00123..b0098bb 100644
--- a/usr.sbin/tcpdump/tcpdump/Makefile
+++ b/usr.sbin/tcpdump/tcpdump/Makefile
@@ -21,6 +21,11 @@ SRCS = version.c tcpdump.c \
CLEANFILES+= version.c
DPADD+= ${LIBL} ${LIBPCAP}
LDADD+= -ll -lpcap
+.if exists(../../../crypto) && !defined(NOSECURE) && !defined(NO_OPENSSL)
+DPADD+= ${LIBCRYPTO}
+LDADD+= -lcrypto
+CFLAGS+= -I${DESTDIR}/usr/include/openssl -DCRYPTO -DHAVE_LIBCRYPTO -DHAVE_RC5_H -DHAVE_CAST_H
+.endif
TCPDUMP_DISTDIR?= ${.CURDIR}/../../../contrib/tcpdump
CFLAGS+= -I${TCPDUMP_DISTDIR}/lbl
OpenPOWER on IntegriCloud