summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-06-10 20:45:36 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-06-10 20:45:36 +0000
commitbb15a4aaca62df563e32ae3abd46a2869412377b (patch)
treea879e73adda61d6aae02ac90f1775c16c6d33e86 /sbin/isakmpd
parentc2964edabc7bd876c3b9ab2dad90b45bdcd5a5b7 (diff)
Zap a few remaining libkeynote refs.
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/ike_quick_mode.c8
-rw-r--r--sbin/isakmpd/x509.c18
2 files changed, 9 insertions, 17 deletions
diff --git a/sbin/isakmpd/ike_quick_mode.c b/sbin/isakmpd/ike_quick_mode.c
index 0272dec11c9..b0471cd423b 100644
--- a/sbin/isakmpd/ike_quick_mode.c
+++ b/sbin/isakmpd/ike_quick_mode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike_quick_mode.c,v 1.63 2002/06/10 18:08:58 ho Exp $ */
+/* $OpenBSD: ike_quick_mode.c,v 1.64 2002/06/10 20:45:35 ho Exp $ */
/* $EOM: ike_quick_mode.c,v 1.139 2001/01/26 10:43:17 niklas Exp $ */
/*
@@ -1594,7 +1594,7 @@ responder_recv_HASH_SA_NONCE (struct message *msg)
if (message_negotiate_sa (msg, check_policy))
goto cleanup;
#else
- if (message_negotiate_sa (msg, libkeynote ? check_policy : 0))
+ if (message_negotiate_sa (msg, 0))
goto cleanup;
#endif
#else
@@ -1693,11 +1693,7 @@ responder_recv_HASH_SA_NONCE (struct message *msg)
}
}
#if !defined (USE_POLICY) && !defined (USE_KEYNOTE)
-#ifdef USE_POLICY
- else if (!libkeynote)
-#else
else
-#endif
{
/*
* This code is no longer necessary, as policy determines acceptance
diff --git a/sbin/isakmpd/x509.c b/sbin/isakmpd/x509.c
index 8a8ba584fa0..025b7da254b 100644
--- a/sbin/isakmpd/x509.c
+++ b/sbin/isakmpd/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.71 2002/06/10 18:08:59 ho Exp $ */
+/* $OpenBSD: x509.c,v 1.72 2002/06/10 20:45:35 ho Exp $ */
/* $EOM: x509.c,v 1.54 2001/01/16 18:42:16 ho Exp $ */
/*
@@ -895,17 +895,13 @@ x509_cert_insert (int id, void *scert)
}
#ifdef USE_POLICY
-#ifdef USE_KEYNOTE
if (x509_generate_kn (id, cert) == 0)
-#else
- if (libkeynote && x509_generate_kn (id, cert) == 0)
-#endif
- {
- LOG_DBG ((LOG_POLICY, 50,
- "x509_cert_insert: x509_generate_kn failed"));
- X509_free (cert);
- return 0;
- }
+ {
+ LOG_DBG ((LOG_POLICY, 50,
+ "x509_cert_insert: x509_generate_kn failed"));
+ X509_free (cert);
+ return 0;
+ }
#endif /* USE_POLICY */
res = x509_hash_enter (cert);