vici: Directly provide CA certificates in authority sections
With the previous approach, CA certificates that were not re-loaded via load-cert() (e.g. from tokens or via absolute paths) would not be available anymore after the clear-creds() command was used. This avoids this issue, but can cause duplicate CA certificates to get stored and enumerated, so there might be a scaling factor.
This commit is contained in:
@@ -128,8 +128,7 @@ static bool register_vici(private_vici_plugin_t *this,
|
||||
this->query = vici_query_create(this->dispatcher);
|
||||
this->control = vici_control_create(this->dispatcher);
|
||||
this->cred = vici_cred_create(this->dispatcher);
|
||||
this->authority = vici_authority_create(this->dispatcher,
|
||||
this->cred);
|
||||
this->authority = vici_authority_create(this->dispatcher);
|
||||
lib->credmgr->add_set(lib->credmgr, &this->cred->set);
|
||||
lib->credmgr->add_set(lib->credmgr, &this->authority->set);
|
||||
this->config = vici_config_create(this->dispatcher, this->authority,
|
||||
|
||||
Reference in New Issue
Block a user