libtls: Move settings to <ns>.tls with fallback to libtls
This commit is contained in:
@@ -711,7 +711,8 @@ static void filter_key_exchange_config_suites(private_tls_crypto_t *this,
|
||||
int i, remaining = 0;
|
||||
char *token, *config;
|
||||
|
||||
config = lib->settings->get_str(lib->settings, "libtls.key_exchange", NULL);
|
||||
config = lib->settings->get_str(lib->settings, "%s.tls.key_exchange", NULL,
|
||||
lib->ns);
|
||||
if (config)
|
||||
{
|
||||
for (i = 0; i < *count; i++)
|
||||
@@ -765,7 +766,8 @@ static void filter_cipher_config_suites(private_tls_crypto_t *this,
|
||||
int i, remaining = 0;
|
||||
char *token, *config;
|
||||
|
||||
config = lib->settings->get_str(lib->settings, "libtls.cipher", NULL);
|
||||
config = lib->settings->get_str(lib->settings, "%s.tls.cipher", NULL,
|
||||
lib->ns);
|
||||
if (config)
|
||||
{
|
||||
for (i = 0; i < *count; i++)
|
||||
@@ -830,7 +832,8 @@ static void filter_mac_config_suites(private_tls_crypto_t *this,
|
||||
int i, remaining = 0;
|
||||
char *token, *config;
|
||||
|
||||
config = lib->settings->get_str(lib->settings, "libtls.mac", NULL);
|
||||
config = lib->settings->get_str(lib->settings, "%s.tls.mac", NULL,
|
||||
lib->ns);
|
||||
if (config)
|
||||
{
|
||||
for (i = 0; i < *count; i++)
|
||||
@@ -879,7 +882,8 @@ static void filter_specific_config_suites(private_tls_crypto_t *this,
|
||||
int i, remaining = 0, suite;
|
||||
char *token, *config;
|
||||
|
||||
config = lib->settings->get_str(lib->settings, "libtls.suites", NULL);
|
||||
config = lib->settings->get_str(lib->settings, "%s.tls.suites", NULL,
|
||||
lib->ns);
|
||||
if (config)
|
||||
{
|
||||
for (i = 0; i < *count; i++)
|
||||
|
||||
Reference in New Issue
Block a user