stroke: Change how CA certificates are stored
Since 11c14bd2f5 CA certificates referenced in ca sections were
enumerated by two credential sets if they were also stored in
ipsec.d/cacerts. This caused duplicate certificate requests to
get sent. All CA certificates, whether loaded automatically or
via a ca section, are now stored in stroke_ca_t.
Certificates referenced in ca sections are now also reloaded
when `ipsec rereadcacerts` is used.
This commit is contained in:
@@ -779,10 +779,10 @@ stroke_socket_t *stroke_socket_create()
|
||||
"%s.plugins.stroke.prevent_loglevel_changes", FALSE, lib->ns),
|
||||
);
|
||||
|
||||
this->cred = stroke_cred_create();
|
||||
this->ca = stroke_ca_create();
|
||||
this->cred = stroke_cred_create(this->ca);
|
||||
this->attribute = stroke_attribute_create();
|
||||
this->handler = stroke_handler_create();
|
||||
this->ca = stroke_ca_create(this->cred);
|
||||
this->config = stroke_config_create(this->ca, this->cred, this->attribute);
|
||||
this->control = stroke_control_create();
|
||||
this->list = stroke_list_create(this->attribute);
|
||||
|
||||
Reference in New Issue
Block a user