summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/policy.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-06-14 10:50:48 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-06-14 10:50:48 +0000
commit841373330f44381e24532a16f128ebd97ca6bc5d (patch)
treec0eec3bc606ef4b397b6819c513f22ccd90c96b9 /sbin/isakmpd/policy.c
parent8452a7098f21b24abdd719acdc65ace5314cf6e3 (diff)
add ENCAP_UDP_{TUNNEL,TRANSPORT} types according to rfc 3947
ok markus
Diffstat (limited to 'sbin/isakmpd/policy.c')
-rw-r--r--sbin/isakmpd/policy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c
index c1efa7121b6..55458535dc2 100644
--- a/sbin/isakmpd/policy.c
+++ b/sbin/isakmpd/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.85 2005/04/08 22:32:10 cloder Exp $ */
+/* $OpenBSD: policy.c,v 1.86 2005/06/14 10:50:47 hshoexer Exp $ */
/* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */
/*
@@ -513,7 +513,9 @@ policy_callback(char *name)
break;
}
else if (decode_16(value) ==
- IPSEC_ENCAP_UDP_ENCAP_TUNNEL)
+ IPSEC_ENCAP_UDP_ENCAP_TUNNEL ||
+ decode_16(value) ==
+ IPSEC_ENCAP_UDP_ENCAP_TUNNEL_DRAFT)
switch (proto->proto) {
case IPSEC_PROTO_IPSEC_AH:
ah_encapsulation = "udp-encap-tunnel";