extend search for certificate file to include resource paths

This commit is contained in:
Vincent Sanders 2019-12-10 22:50:16 +00:00
parent 77d184913b
commit 4c68def432
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ static nserror set_defaults(struct nsoption_s *defaults)
&ptr);
if (res_len > 0) {
nsoption_setnull_charp(ca_bundle, strdup(buf));
} else {
ptr = filepath_sfind(G_resource_pathv, buf, "ca-bundle.crt");
if (ptr != NULL) {
nsoption_setnull_charp(ca_bundle, strdup(buf));
}
}