charon-tkm: Use lib->ns instead of charon->name
authorTobias Brunner <tobias@strongswan.org>
Wed, 22 Jan 2014 14:19:24 +0000 (15:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 12 Feb 2014 13:34:32 +0000 (14:34 +0100)
src/charon-tkm/src/tkm/tkm.c
src/charon-tkm/src/tkm/tkm_diffie_hellman.c
src/charon-tkm/tests/tests.c

index a39221d..61eb605 100644 (file)
@@ -61,7 +61,7 @@ bool tkm_init()
        ehandler_init();
 
        ikesock = lib->settings->get_str(lib->settings, "%s.ike_socket", IKE_SOCKET,
-                                                                        charon->name);
+                                                                        lib->ns);
        if (ike_init(ikesock) != TKM_OK)
        {
                tkmlib_final();
@@ -70,7 +70,7 @@ bool tkm_init()
        DBG1(DBG_DMN, "connected to TKM via socket '%s'", ikesock);
 
        eessock = lib->settings->get_str(lib->settings, "%s.ees_socket", EES_SOCKET,
-                                                                        charon->name);
+                                                                        lib->ns);
        ees_server_init(eessock);
        DBG1(DBG_DMN, "serving EES requests on socket '%s'", eessock);
 
index c30a03f..a34d0b1 100644 (file)
@@ -133,7 +133,7 @@ int register_dh_mapping()
 
        enumerator = lib->settings->create_key_value_enumerator(lib->settings,
                                                                                                                        "%s.dh_mapping",
-                                                                                                                       charon->name);
+                                                                                                                       lib->ns);
 
        while (enumerator->enumerate(enumerator, &iana_id_str, &tkm_id_str))
        {
index 7a25565..e6e3f30 100644 (file)
@@ -67,9 +67,9 @@ static bool test_runner_init(bool init)
                                                                                  countof(features), TRUE);
 
                lib->settings->set_int(lib->settings, "%s.dh_mapping.%d", 1,
-                                                          charon->name, MODP_3072_BIT);
+                                                          lib->ns, MODP_3072_BIT);
                lib->settings->set_int(lib->settings, "%s.dh_mapping.%d", 2,
-                                                          charon->name, MODP_4096_BIT);
+                                                          lib->ns, MODP_4096_BIT);
                register_dh_mapping();
 
                plugin_loader_add_plugindirs(BUILDDIR "/src/libstrongswan/plugins",