libcharon: Use lib->ns instead of charon->name
This commit is contained in:
@@ -214,12 +214,11 @@ coupling_validator_t *coupling_validator_create()
|
||||
.mutex = mutex_create(MUTEX_TYPE_DEFAULT),
|
||||
.max_couplings = lib->settings->get_int(lib->settings,
|
||||
"%s.plugins.coupling.max", 1,
|
||||
charon->name),
|
||||
lib->ns),
|
||||
);
|
||||
|
||||
hash = lib->settings->get_str(lib->settings,
|
||||
"%s.plugins.coupling.hash", "sha1",
|
||||
charon->name);
|
||||
"%s.plugins.coupling.hash", "sha1", lib->ns);
|
||||
this->hasher = lib->crypto->create_hasher(lib->crypto,
|
||||
enum_from_name(hash_algorithm_short_names, hash));
|
||||
if (!this->hasher)
|
||||
@@ -230,8 +229,7 @@ coupling_validator_t *coupling_validator_create()
|
||||
}
|
||||
|
||||
path = lib->settings->get_str(lib->settings,
|
||||
"%s.plugins.coupling.file", NULL,
|
||||
charon->name);
|
||||
"%s.plugins.coupling.file", NULL, lib->ns);
|
||||
if (!path)
|
||||
{
|
||||
DBG1(DBG_CFG, "coupling file path unspecified");
|
||||
|
||||
Reference in New Issue
Block a user