hx509: Add hx509.conf support

Just like krb5.conf, but hx509.conf, with all the same default locations
on Windows, OS X, and elsewhere, and HX509_CONFIG as the environment
variable equivalent of KRB5_CONFIG.
This commit is contained in:
Nicolas Williams
2020-03-02 22:33:07 -06:00
parent 78a21fdd95
commit 679bcb6872
4 changed files with 75 additions and 20 deletions

View File

@@ -406,7 +406,7 @@ heim_error_code
heim_set_config_files(heim_context context, char **filenames,
heim_config_binding **res)
{
heim_error_code ret;
heim_error_code ret = 0;
*res = NULL;
while (filenames != NULL && *filenames != NULL && **filenames != '\0') {
@@ -421,10 +421,14 @@ heim_set_config_files(heim_context context, char **filenames,
}
#ifdef _WIN32
/*
* We always ignored errors from loading from the registry, so we still do.
*/
heim_load_config_from_registry(context, REGPATH_KERBEROS,
REGPATH_HEIMDAL, res);
#endif
return ret;
return 0;
}
void