vici: strongswan.conf cache_crls = yes saves fetched CRLs to disk
This commit is contained in:
@@ -562,7 +562,7 @@ static void load_certdir(private_stroke_cred_t *this, char *path,
|
||||
}
|
||||
}
|
||||
|
||||
METHOD(stroke_cred_t, cache_cert, void,
|
||||
METHOD(credential_set_t, cache_cert, void,
|
||||
private_stroke_cred_t *this, certificate_t *cert)
|
||||
{
|
||||
if (cert->get_type(cert) == CERT_X509_CRL && this->cachecrl)
|
||||
@@ -1497,6 +1497,10 @@ stroke_cred_t *stroke_cred_create(stroke_ca_t *ca)
|
||||
.ca = ca,
|
||||
);
|
||||
|
||||
if (lib->settings->get_bool(lib->settings, "%s.cache_crls", FALSE, lib->ns))
|
||||
{
|
||||
cachecrl(this, TRUE);
|
||||
}
|
||||
lib->credmgr->add_set(lib->credmgr, &this->creds->set);
|
||||
lib->credmgr->add_set(lib->credmgr, &this->aacerts->set);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2011-2013 Tobias Brunner
|
||||
* Copyright (C) 2008 Martin Willi
|
||||
* Hochschule fuer Technik Rapperswil
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
|
||||
Reference in New Issue
Block a user