summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ipsecctl.h
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-08-09 12:37:46 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-08-09 12:37:46 +0000
commit1e540711bb6cafcb339cac85392e23b8288b67eb (patch)
tree8a17ce0783e6e6645b76dad221485558adb4b6ad /sbin/ipsecctl/ipsecctl.h
parentb15edfb230e8fc9ccae7c9f1890170dc936cdfd3 (diff)
Rewrite handling of transforms. Now both ah and esp can be specified and
validated correctly. Unbreaks ah.
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.h')
-rw-r--r--sbin/ipsecctl/ipsecctl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/ipsecctl/ipsecctl.h b/sbin/ipsecctl/ipsecctl.h
index 0e85060f9ef..14c086db724 100644
--- a/sbin/ipsecctl/ipsecctl.h
+++ b/sbin/ipsecctl/ipsecctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsecctl.h,v 1.15 2005/08/08 13:29:00 hshoexer Exp $ */
+/* $OpenBSD: ipsecctl.h,v 1.16 2005/08/09 12:37:45 hshoexer Exp $ */
/*
* Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org>
*
@@ -86,6 +86,11 @@ struct ipsec_xf {
size_t keymax;
};
+struct ipsec_transforms {
+ const struct ipsec_xf *authxf;
+ const struct ipsec_xf *encxf;
+};
+
extern const struct ipsec_xf authxfs[];
extern const struct ipsec_xf encxfs[];
@@ -97,8 +102,7 @@ struct ipsec_rule {
struct ipsec_addr *dst;
struct ipsec_addr *peer;
struct ipsec_auth *auth;
- const struct ipsec_xf *authxf;
- const struct ipsec_xf *encxf;
+ struct ipsec_transforms *xfs;
struct ipsec_key *authkey;
struct ipsec_key *enckey;