aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hosts
diff options
context:
space:
mode:
authorHeiko Hund <hhund@astaro.com>2010-07-07 16:45:36 +0200
committerMartin Willi <martin@revosec.ch>2010-07-09 13:09:31 +0200
commitec7adea0073a603f1ba40c45a931ec7eadab25d9 (patch)
tree5c0c319ada5f8f35408f42f4b0ada5fb5aee3a15 /testing/hosts
parentdb4ad736becd342c9b9b926801324f5ea5ab20df (diff)
downloadstrongswan-ec7adea0073a603f1ba40c45a931ec7eadab25d9.tar.bz2
strongswan-ec7adea0073a603f1ba40c45a931ec7eadab25d9.tar.xz
Added support for named attribute groups
Add the possibility to group attributes by a name and assign these groups to connections. This allows a more granular configuration of which client will receive what atrributes.
Diffstat (limited to 'testing/hosts')
-rw-r--r--testing/hosts/default/etc/ipsec.d/tables.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/hosts/default/etc/ipsec.d/tables.sql b/testing/hosts/default/etc/ipsec.d/tables.sql
index f7820a156..eb5f0e477 100644
--- a/testing/hosts/default/etc/ipsec.d/tables.sql
+++ b/testing/hosts/default/etc/ipsec.d/tables.sql
@@ -183,12 +183,27 @@ CREATE TABLE leases (
released INTEGER NOT NULL
);
+DROP TABLE IF EXISTS attribute_pools;
+CREATE TABLE attribute_pools (
+ id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ name TEXT NOT NULL
+);
DROP TABLE IF EXISTS attributes;
CREATE TABLE attributes (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
+ identity INTEGER NOT NULL DEFAULT 0,
+ pool INTEGER NOT NULL DEFAULT 0,
type INTEGER NOT NULL,
value BLOB NOT NULL
);
+DROP INDEX IF EXISTS attributes_identity;
+CREATE INDEX attributes_identity ON attributes (
+ identity
+);
+DROP INDEX IF EXISTS attributes_pool;
+CREATE INDEX attributes_pool ON attributes (
+ pool
+);
DROP TABLE IF EXISTS ike_sas;
CREATE TABLE ike_sas (