vici: Keep track of all CA certificates in vici_authority_t

This way we only have one reference for each CA certificate, whether it
is loaded in an authority section, a connection or via load-certs() command.
It also avoids enumerating CA certificates multiple times if they are
loaded in different ways.
This commit is contained in:
Tobias Brunner
2020-07-20 14:05:39 +02:00
parent 3d3d5235aa
commit 3c5e7eaa88
6 changed files with 193 additions and 29 deletions
+1 -1
View File
@@ -127,8 +127,8 @@ 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 = vici_cred_create(this->dispatcher, this->authority);
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,