summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1999-08-26 22:32:03 +0000
committerniklas <niklas@openbsd.org>1999-08-26 22:32:03 +0000
commit7bc3785fb867b546ec8e2d8652b9b68bd3ef42a6 (patch)
treef6cf08f4d15d8ad54c6762dff034f0bc9f480129
parentMerge with EOM 1.9 (diff)
downloadwireguard-openbsd-7bc3785fb867b546ec8e2d8652b9b68bd3ef42a6.tar.xz
wireguard-openbsd-7bc3785fb867b546ec8e2d8652b9b68bd3ef42a6.zip
Merge with EOM 1.10
author: niklas Recognize systems without dlopen(3). Enable keynote. author: angelos I shouldn't turn KeyNote on by default for everyone -- that's someone else's decision (although we should, as soon as I've tested the X509 case). author: angelos Complete policy work; tested for the shared-key case. Documentation needed. author: niklas Add support for dynamic loading of optional facilities, libcrypto first.
-rw-r--r--sbin/isakmpd/sysdep/openbsd/Makefile.sysdep29
1 files changed, 16 insertions, 13 deletions
diff --git a/sbin/isakmpd/sysdep/openbsd/Makefile.sysdep b/sbin/isakmpd/sysdep/openbsd/Makefile.sysdep
index 9323a6d5e41..b8c64ab49c1 100644
--- a/sbin/isakmpd/sysdep/openbsd/Makefile.sysdep
+++ b/sbin/isakmpd/sysdep/openbsd/Makefile.sysdep
@@ -1,5 +1,5 @@
-# $OpenBSD: Makefile.sysdep,v 1.6 1999/07/17 22:07:31 niklas Exp $
-# $EOM: Makefile.sysdep,v 1.6 1999/07/17 22:10:49 niklas Exp $
+# $OpenBSD: Makefile.sysdep,v 1.7 1999/08/26 22:32:03 niklas Exp $
+# $EOM: Makefile.sysdep,v 1.10 1999/08/26 11:40:48 niklas Exp $
#
# Copyright (c) 1999 Niklas Hallqvist. All rights reserved.
@@ -34,19 +34,22 @@
# This code was written under funding by Ericsson Radio Systems.
#
-LDADD+= -lgmp -lcrypto
-DPADD+= ${LIBGMP} ${LIBCRYPTO}
+LDADD+= -lgmp
+DPADD+= ${LIBGMP}
-SRCS+= pf_key_v2.c
-CFLAGS+= -DUSE_PF_KEY_V2
+IPSEC_SRCS= pf_key_v2.c
+IPSEC_CFLAGS= -DUSE_PF_KEY_V2
-USE_KEYNOTE= yes
+# Some OpenBSD systems do not provide dlopen(3).
+.if ${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "mips" && ${MACHINE_ARCH} != "powerpc" && ${MACHINE_ARCH} != "vax"
+HAVE_DLOPEN= defined
+CFLAGS+= -DSYMBOL_PREFIX='"_"'
+.endif
-.ifdef USE_KEYNOTE
-LDADD+= -lkeynote -lcrypto -lm
-#DPADD+=
+USE_LIBCRYPTO= defined
+USE_KEYNOTE= defined
-SRCS+= policy.c
-CFLAGS+= -DUSE_KEYNOTE
+.ifndef USE_LIBCRYPTO
+DESLIB= -ldes
+DESLIBDEP= ${LIBDES}
.endif
-