summaryrefslogtreecommitdiff
path: root/sbin/ipsecadm/ipsecadm.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-05-23 16:04:19 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-05-23 16:04:19 +0000
commit5703fc12b2b41f0323639f45800080436b49a1f1 (patch)
tree3ef21592916a49fd434c698c4ba148911ceb8e12 /sbin/ipsecadm/ipsecadm.c
parente00a98a16f4119f1bdc4e978919230f6f50b98b0 (diff)
support deletion of tcpmd5 SAs and add regress tests; ok hshoexer, deraadt
Diffstat (limited to 'sbin/ipsecadm/ipsecadm.c')
-rw-r--r--sbin/ipsecadm/ipsecadm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/ipsecadm/ipsecadm.c b/sbin/ipsecadm/ipsecadm.c
index 2bb58494316..f9c70cbbc46 100644
--- a/sbin/ipsecadm/ipsecadm.c
+++ b/sbin/ipsecadm/ipsecadm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecadm.c,v 1.78 2004/05/23 08:48:03 markus Exp $ */
+/* $OpenBSD: ipsecadm.c,v 1.79 2004/05/23 16:04:18 markus Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -1385,6 +1385,9 @@ main(int argc, char *argv[])
} else if (!strcasecmp(argv[i + 1], "ipcomp")) {
smsg.sadb_msg_satype = SADB_X_SATYPE_IPCOMP;
proto = IPPROTO_IPCOMP;
+ } else if (!strcasecmp(argv[i + 1], "tcpmd5")) {
+ smsg.sadb_msg_satype = SADB_X_SATYPE_TCPSIGNATURE;
+ proto = IPPROTO_TCP;
} else {
fprintf(stderr,
"%s: unknown security protocol type %s\n",