From f6ba78c370794ea8247b33752a8dbe930b19df1e Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Mon, 5 Dec 2005 12:21:38 +0000 Subject: - added payload CERT - cleaned code of different states - added additional notify handling --- Source/charon/config/configuration_manager.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/charon/config/configuration_manager.c') 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); -- cgit v1.2.3