mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Allow -tls_ca{file,path} '' to unset an argument
This commit is contained in:
parent
0e8717acf6
commit
cf90384023
@ -213,12 +213,16 @@ static void cmd_server_add_modify(const char *data, gboolean add)
|
||||
value = g_hash_table_lookup(optlist, "ssl_cafile");
|
||||
if (value != NULL && *value != '\0')
|
||||
rec->tls_cafile = g_strdup(value);
|
||||
else if (value != NULL && *value == '\0')
|
||||
g_free_and_null(rec->tls_cafile);
|
||||
|
||||
value = g_hash_table_lookup(optlist, "tls_capath");
|
||||
if (value == NULL)
|
||||
value = g_hash_table_lookup(optlist, "ssl_capath");
|
||||
if (value != NULL && *value != '\0')
|
||||
rec->tls_capath = g_strdup(value);
|
||||
else if (value != NULL && *value == '\0')
|
||||
g_free_and_null(rec->tls_capath);
|
||||
|
||||
value = g_hash_table_lookup(optlist, "tls_ciphers");
|
||||
if (value == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user