Windows: Add an API for reading a multistring from registry
The _krb5_parse_reg_value_as_string() used to concatenate multi-strings using a space to be compatible with krb5_config_get_strings() and friends. Add a new function that can read a multi-string with an arbitrary delimiter character _krb5_parse_reg_value_as_multi_string().
This commit is contained in:
@@ -760,8 +760,8 @@ _krb5_get_default_config_config_files_from_registry()
|
||||
|
||||
rcode = RegOpenKeyEx(HKEY_CURRENT_USER, KeyName, 0, KEY_READ, &key);
|
||||
if (rcode == ERROR_SUCCESS) {
|
||||
config_file = _krb5_parse_reg_value_as_string(NULL, key, "config",
|
||||
REG_NONE, 0);
|
||||
config_file = _krb5_parse_reg_value_as_multi_string(NULL, key, "config",
|
||||
REG_NONE, 0, PATH_SEP);
|
||||
RegCloseKey(key);
|
||||
}
|
||||
|
||||
@@ -770,8 +770,8 @@ _krb5_get_default_config_config_files_from_registry()
|
||||
|
||||
rcode = RegOpenKeyEx(HKEY_LOCAL_MACHINE, KeyName, 0, KEY_READ, &key);
|
||||
if (rcode == ERROR_SUCCESS) {
|
||||
config_file = _krb5_parse_reg_value_as_string(NULL, key, "config",
|
||||
REG_NONE, 0);
|
||||
config_file = _krb5_parse_reg_value_as_multi_string(NULL, key, "config",
|
||||
REG_NONE, 0, PATH_SEP);
|
||||
RegCloseKey(key);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user