From 4c68def4321911e417a98deb1d394fb96e42100f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 10 Dec 2019 22:50:16 +0000 Subject: extend search for certificate file to include resource paths --- frontends/windows/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'frontends') 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)); + } } -- cgit v1.2.3