lib: All settings use configured namespace
This commit is contained in:
@@ -471,7 +471,7 @@ static bool parse_extensions(private_openssl_crl_t *this)
|
||||
default:
|
||||
ok = X509_EXTENSION_get_critical(ext) == 0 ||
|
||||
!lib->settings->get_bool(lib->settings,
|
||||
"libstrongswan.x509.enforce_critical", TRUE);
|
||||
"%s.x509.enforce_critical", TRUE, lib->ns);
|
||||
if (!ok)
|
||||
{
|
||||
DBG1(DBG_LIB, "found unsupported critical X.509 "
|
||||
|
||||
@@ -201,7 +201,7 @@ static bool compute_shared_key(private_openssl_ec_diffie_hellman_t *this,
|
||||
* http://www.rfc-editor.org/errata_search.php?eid=9
|
||||
*/
|
||||
x_coordinate_only = lib->settings->get_bool(lib->settings,
|
||||
"libstrongswan.ecp_x_coordinate_only", TRUE);
|
||||
"%s.ecp_x_coordinate_only", TRUE, lib->ns);
|
||||
if (!ecp2chunk(this->ec_group, secret, shared_secret, x_coordinate_only))
|
||||
{
|
||||
goto error;
|
||||
|
||||
@@ -522,7 +522,7 @@ plugin_t *openssl_plugin_create()
|
||||
int fips_mode;
|
||||
|
||||
fips_mode = lib->settings->get_int(lib->settings,
|
||||
"libstrongswan.plugins.openssl.fips_mode", FIPS_MODE);
|
||||
"%s.plugins.openssl.fips_mode", FIPS_MODE, lib->ns);
|
||||
#ifdef OPENSSL_FIPS
|
||||
if (fips_mode)
|
||||
{
|
||||
|
||||
@@ -558,7 +558,7 @@ openssl_rsa_private_key_t *openssl_rsa_private_key_connect(key_type_t type,
|
||||
if (!engine_id)
|
||||
{
|
||||
engine_id = lib->settings->get_str(lib->settings,
|
||||
"libstrongswan.plugins.openssl.engine_id", "pkcs11");
|
||||
"%s.plugins.openssl.engine_id", "pkcs11", lib->ns);
|
||||
}
|
||||
engine = ENGINE_by_id(engine_id);
|
||||
if (!engine)
|
||||
|
||||
@@ -1012,7 +1012,7 @@ static bool parse_extensions(private_openssl_x509_t *this)
|
||||
default:
|
||||
ok = X509_EXTENSION_get_critical(ext) == 0 ||
|
||||
!lib->settings->get_bool(lib->settings,
|
||||
"libstrongswan.x509.enforce_critical", TRUE);
|
||||
"%s.x509.enforce_critical", TRUE, lib->ns);
|
||||
if (!ok)
|
||||
{
|
||||
char buf[80] = "";
|
||||
|
||||
Reference in New Issue
Block a user