summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ike.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2008-02-22 23:51:32 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2008-02-22 23:51:32 +0000
commit02429484a70b33ac9d64d0df166acfe5db868928 (patch)
tree06a8068e6fce6ad208efc12775cf4e9326c8fa9e /sbin/ipsecctl/ike.c
parentac775c6c56f11c017f23c08c3fa4b78b1d1e81f2 (diff)
Support for specifying aes-{128,192,256}. Originial idea by Prabhu
Gurumurthy, tweaks and commit-ready diff by Mitja Muzenic! Thanks guys! ok todd@
Diffstat (limited to 'sbin/ipsecctl/ike.c')
-rw-r--r--sbin/ipsecctl/ike.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ike.c b/sbin/ipsecctl/ike.c
index 735e58040bc..12464bf84e9 100644
--- a/sbin/ipsecctl/ike.c
+++ b/sbin/ipsecctl/ike.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike.c,v 1.62 2008/01/04 11:06:02 hshoexer Exp $ */
+/* $OpenBSD: ike.c,v 1.63 2008/02/22 23:51:31 hshoexer Exp $ */
/*
* Copyright (c) 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -231,6 +231,15 @@ ike_section_p2(struct ipsec_rule *r, FILE *fd)
case ENCXF_AES:
fprintf(fd, "AES");
break;
+ case ENCXF_AES_128:
+ fprintf(fd, "AES-128");
+ break;
+ case ENCXF_AES_192:
+ fprintf(fd, "AES-192");
+ break;
+ case ENCXF_AES_256:
+ fprintf(fd, "AES-256");
+ break;
case ENCXF_AESCTR:
fprintf(fd, "AESCTR");
break;
@@ -366,6 +375,15 @@ ike_section_p1(struct ipsec_rule *r, FILE *fd)
case ENCXF_AES:
fprintf(fd, "AES");
break;
+ case ENCXF_AES_128:
+ fprintf(fd, "AES-128");
+ break;
+ case ENCXF_AES_192:
+ fprintf(fd, "AES-192");
+ break;
+ case ENCXF_AES_256:
+ fprintf(fd, "AES-256");
+ break;
case ENCXF_BLOWFISH:
fprintf(fd, "BLF");
break;