diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-12-10 22:50:16 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-12-10 23:12:10 +0000 |
commit | 4c68def4321911e417a98deb1d394fb96e42100f (patch) | |
tree | 0ce219802bd897cd179301d767ca8d730ab6b7b3 /frontends/windows/main.c | |
parent | 77d184913b64b1613ac70acb23c1230c5ec41e67 (diff) | |
download | netsurf-4c68def4321911e417a98deb1d394fb96e42100f.tar.gz netsurf-4c68def4321911e417a98deb1d394fb96e42100f.tar.bz2 |
extend search for certificate file to include resource paths
Diffstat (limited to 'frontends/windows/main.c')
-rw-r--r-- | frontends/windows/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/windows/main.c b/frontends/windows/main.c index 2dd403edb..eb0a8661e 100644 --- a/frontends/windows/main.c +++ b/frontends/windows/main.c @@ -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)); + } } |