diff options
author | Jan Hutter <jhutter@hsr.ch> | 2005-12-05 12:21:38 +0000 |
---|---|---|
committer | Jan Hutter <jhutter@hsr.ch> | 2005-12-05 12:21:38 +0000 |
commit | f6ba78c370794ea8247b33752a8dbe930b19df1e (patch) | |
tree | 8aaeb98d0c3702610e37a7e5ced5f9b76a30696c /Source/charon/config/configuration_manager.c | |
parent | 3ebebc5e963afed1242192f4fa440c177daee4bc (diff) | |
download | strongswan-f6ba78c370794ea8247b33752a8dbe930b19df1e.tar.bz2 strongswan-f6ba78c370794ea8247b33752a8dbe930b19df1e.tar.xz |
- added payload CERT
- cleaned code of different states
- added additional notify handling
Diffstat (limited to 'Source/charon/config/configuration_manager.c')
-rw-r--r-- | Source/charon/config/configuration_manager.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/charon/config/configuration_manager.c b/Source/charon/config/configuration_manager.c index 94be4b5f7..83f68eafc 100644 --- a/Source/charon/config/configuration_manager.c +++ b/Source/charon/config/configuration_manager.c @@ -355,9 +355,9 @@ static void load_default_config (private_configuration_manager_t *this) this->add_new_configuration(this,"pinflb30",init_config2,sa_config2); this->add_new_configuration(this,"localhost",init_config3,sa_config3); - this->add_new_preshared_secret(this,ID_IPV4_ADDR, "152.96.193.130","das ist ein sicheres wort"); - this->add_new_preshared_secret(this,ID_IPV4_ADDR, "152.96.193.131","das ist ein sicheres wort"); - this->add_new_preshared_secret(this,ID_IPV4_ADDR, "127.0.0.1","das ist ein sicheres wort"); + this->add_new_preshared_secret(this,ID_IPV4_ADDR, "152.96.193.130","verschluesselt"); + this->add_new_preshared_secret(this,ID_IPV4_ADDR, "152.96.193.131","verschluesselt"); + this->add_new_preshared_secret(this,ID_IPV4_ADDR, "127.0.0.1","verschluesselt"); this->add_new_rsa_public_key(this,ID_IPV4_ADDR, "127.0.0.1", public_key_1, 256); this->add_new_rsa_public_key(this,ID_IPV4_ADDR, "152.96.193.131", public_key_2, 256); @@ -602,7 +602,7 @@ static void add_new_preshared_secret (private_configuration_manager_t *this,id_t preshared_secret_entry_t *entry = allocator_alloc_thing(preshared_secret_entry_t); entry->identification = identification_create_from_string(type,id_string); - entry->preshared_secret.len = strlen(preshared_secret); + entry->preshared_secret.len = strlen(preshared_secret) + 1; entry->preshared_secret.ptr = allocator_alloc(entry->preshared_secret.len); memcpy(entry->preshared_secret.ptr,preshared_secret,entry->preshared_secret.len); |