From 31b39e5f7cf466aa974d95023e949be54d43d155 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sat, 15 May 2010 18:36:14 +0200 Subject: [PATCH] encoding of MODE_TUNNEL changed --- src/libcharon/plugins/sql/mysql.sql | 2 +- src/libcharon/plugins/sql/sqlite.sql | 2 +- testing/hosts/default/etc/ipsec.d/tables.sql | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libcharon/plugins/sql/mysql.sql b/src/libcharon/plugins/sql/mysql.sql index ea4b7e7cb8..f4a62a6f85 100644 --- a/src/libcharon/plugins/sql/mysql.sql +++ b/src/libcharon/plugins/sql/mysql.sql @@ -19,7 +19,7 @@ CREATE TABLE `child_configs` ( `jitter` mediumint(8) unsigned NOT NULL default '60', `updown` varchar(128) collate utf8_unicode_ci default NULL, `hostaccess` tinyint(1) unsigned NOT NULL default '0', - `mode` tinyint(4) unsigned NOT NULL default '1', + `mode` tinyint(4) unsigned NOT NULL default '2', `dpd_action` tinyint(4) unsigned NOT NULL default '0', `close_action` tinyint(4) unsigned NOT NULL default '0', `ipcomp` tinyint(4) unsigned NOT NULL default '0', diff --git a/src/libcharon/plugins/sql/sqlite.sql b/src/libcharon/plugins/sql/sqlite.sql index a036eeee8e..55e34e58d7 100644 --- a/src/libcharon/plugins/sql/sqlite.sql +++ b/src/libcharon/plugins/sql/sqlite.sql @@ -18,7 +18,7 @@ CREATE TABLE child_configs ( jitter INTEGER NOT NULL DEFAULT '60', updown TEXT DEFAULT NULL, hostaccess INTEGER NOT NULL DEFAULT '0', - mode INTEGER NOT NULL DEFAULT '1', + mode INTEGER NOT NULL DEFAULT '2', dpd_action INTEGER NOT NULL DEFAULT '0', close_action INTEGER NOT NULL DEFAULT '0', ipcomp INTEGER NOT NULL DEFAULT '0' diff --git a/testing/hosts/default/etc/ipsec.d/tables.sql b/testing/hosts/default/etc/ipsec.d/tables.sql index 0e880826d1..b768c6ed2b 100644 --- a/testing/hosts/default/etc/ipsec.d/tables.sql +++ b/testing/hosts/default/etc/ipsec.d/tables.sql @@ -17,7 +17,7 @@ CREATE TABLE child_configs ( jitter INTEGER NOT NULL DEFAULT '180', updown TEXT DEFAULT NULL, hostaccess INTEGER NOT NULL DEFAULT '0', - mode INTEGER NOT NULL DEFAULT '1', + mode INTEGER NOT NULL DEFAULT '2', dpd_action INTEGER NOT NULL DEFAULT '0', close_action INTEGER NOT NULL DEFAULT '0', ipcomp INTEGER NOT NULL DEFAULT '0' @@ -197,9 +197,9 @@ CREATE TABLE ike_sas ( id INTEGER NOT NULL, initiator INTEGER NOT NULL, local_id_type INTEGER NOT NULL, - local_id_data BLOB DEFAULT NULL, + local_id_data BLOB NOT NULL, remote_id_type INTEGER NOT NULL, - remote_id_data BLOB DEFAULT NULL, + remote_id_data BLOB NOT NULL, host_family INTEGER NOT NULL, local_host_data BLOB NOT NULL, remote_host_data BLOB NOT NULL, -- 2.47.2