store IKE and ESP proposals in SQL database

This commit is contained in:
Andreas Steffen
2010-11-30 17:03:21 +01:00
parent b62bde3b95
commit f4e5acef3a
8 changed files with 325 additions and 16 deletions
+23
View File
@@ -38,6 +38,21 @@ CREATE TABLE `child_config_traffic_selector` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `algorithms`;
CREATE TABLE `algorithms` (
`id` int(10) unsigned NOT NULL auto_increment,
`algorithm` varchar(128) NOT NULL
);
DROP TABLE IF EXISTS `child_config_algorithm`;
CREATE TABLE `child_config_algorithm` (
`child_cfg` int(10) unsigned NOT NULL,
`prio` smallint(5) unsigned NOT NULL,
`alg` int(10) unsigned NOT NULL
);
DROP TABLE IF EXISTS `ike_configs`;
CREATE TABLE `ike_configs` (
`id` int(10) unsigned NOT NULL auto_increment,
@@ -49,6 +64,14 @@ CREATE TABLE `ike_configs` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
DROP TABLE IF EXISTS `ike_config_algorithm`;
CREATE TABLE `ike_config_algorithm` (
`ike_cfg` int(10) unsigned NOT NULL,
`prio` smallint(5) unsigned NOT NULL,
`alg` int(10) unsigned NOT NULL
);
DROP TABLE IF EXISTS `peer_configs`;
CREATE TABLE `peer_configs` (
`id` int(10) unsigned NOT NULL auto_increment,