summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-10-12 15:47:50 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-10-12 15:47:50 +0000
commit3faf8f4ad6da12fce4d7294bc6a75a1fadde0fb9 (patch)
tree507cc3fabec004b5540c445cf32f89cb8b7bea16
parentfd006e56b5ba89efe12784797e9d0bb410946a36 (diff)
SADB_X_IDENTTYPE_CONNECTION appeared after 2.9. niklas@ ok.
-rw-r--r--sbin/isakmpd/pf_key_v2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c
index b753e719073..9d867604b31 100644
--- a/sbin/isakmpd/pf_key_v2.c
+++ b/sbin/isakmpd/pf_key_v2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_key_v2.c,v 1.89 2001/08/27 18:26:16 ho Exp $ */
+/* $OpenBSD: pf_key_v2.c,v 1.90 2001/10/12 15:47:49 ho Exp $ */
/* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */
/*
@@ -3036,9 +3036,11 @@ pf_key_v2_acquire (struct pf_key_v2_msg *pmsg)
/* Check for valid type. */
switch (srcident->sadb_ident_type)
{
+#ifdef SADB_X_IDENTTYPE_CONNECTION
case SADB_X_IDENTTYPE_CONNECTION:
/* XXX */
break;
+#endif
case SADB_IDENTTYPE_PREFIX:
/* Determine what the address family is. */
@@ -3201,9 +3203,11 @@ pf_key_v2_acquire (struct pf_key_v2_msg *pmsg)
/* Check for valid type. */
switch (dstident->sadb_ident_type)
{
+#ifdef SADB_X_IDENTTYPE_CONNECTION
case SADB_X_IDENTTYPE_CONNECTION:
/* XXX */
break;
+#endif
case SADB_IDENTTYPE_PREFIX:
/* Determine what the address family is. */