summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1999-08-26 22:30:58 +0000
committerniklas <niklas@openbsd.org>1999-08-26 22:30:58 +0000
commit4f94bf8b6e9de5f9cbcb15545afa267788066c37 (patch)
tree1f41d33afc64b737569befbd3a9182dc17653cb4
parentregress/rsakeygen/rsakeygen.c: Merge with EOM 1.9 (diff)
downloadwireguard-openbsd-4f94bf8b6e9de5f9cbcb15545afa267788066c37.tar.xz
wireguard-openbsd-4f94bf8b6e9de5f9cbcb15545afa267788066c37.zip
Merge with EOM 1.18
author: niklas Support dynamic loading of libkeynote too. Build isakmpd static by default. Stylistic cleanup of keynote policy code. Correct some libcrypto calls. author: niklas Add support for dynamic loading of optional facilities, libcrypto first.
-rw-r--r--sbin/isakmpd/init.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sbin/isakmpd/init.c b/sbin/isakmpd/init.c
index 94d7a22917e..5f29c874257 100644
--- a/sbin/isakmpd/init.c
+++ b/sbin/isakmpd/init.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: init.c,v 1.9 1999/07/17 21:54:39 niklas Exp $ */
-/* $EOM: init.c,v 1.16 1999/07/17 20:44:10 niklas Exp $ */
+/* $OpenBSD: init.c,v 1.10 1999/08/26 22:30:58 niklas Exp $ */
+/* $EOM: init.c,v 1.18 1999/08/26 11:21:49 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -48,6 +48,7 @@
#include "init.h"
#include "ipsec.h"
#include "isakmp_doi.h"
+#include "libcrypto.h"
#include "math_group.h"
#include "sa.h"
#include "timer.h"
@@ -55,7 +56,7 @@
#include "udp.h"
#include "ui.h"
-#ifdef USE_KEYNOTE
+#if defined (USE_KEYNOTE) || defined (HAVE_DLOPEN)
#include "policy.h"
#endif
@@ -68,6 +69,7 @@ init ()
group_init ();
ipsec_init ();
isakmp_doi_init ();
+ libcrypto_init ();
timer_init ();
/* The following group are depending on timer_init having run. */
@@ -83,8 +85,8 @@ init ()
udp_init ();
ui_init ();
-#ifdef USE_KEYNOTE
- /* policy_init depends on conf_init having run. */
+#if defined (USE_KEYNOTE) || defined (HAVE_DLOPEN)
+ /* policy_init depends on conf_init having run. */
policy_init ();
#endif
}