aboutsummaryrefslogtreecommitdiff
path: root/devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc')
-rw-r--r--devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc b/devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
new file mode 100644
index 000000000000..b2e1ec0c4090
--- /dev/null
+++ b/devel/electron23/files/patch-net_tools_cert__verify__tool_cert__verify__comparision__tool.cc
@@ -0,0 +1,29 @@
+--- net/tools/cert_verify_tool/cert_verify_comparision_tool.cc.orig 2022-06-17 14:20:10 UTC
++++ net/tools/cert_verify_tool/cert_verify_comparision_tool.cc
+@@ -35,7 +35,7 @@
+ #include "net/url_request/url_request_context_builder.h"
+ #include "net/url_request/url_request_context_getter.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include "net/proxy_resolution/proxy_config.h"
+ #include "net/proxy_resolution/proxy_config_service_fixed.h"
+ #endif
+@@ -55,7 +55,7 @@ void SetUpOnNetworkThread(
+ base::WaitableEvent* initialization_complete_event) {
+ net::URLRequestContextBuilder url_request_context_builder;
+ url_request_context_builder.set_user_agent(GetUserAgent());
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // On Linux, use a fixed ProxyConfigService, since the default one
+ // depends on glib.
+ //
+@@ -127,7 +127,7 @@ class CertVerifyImpl {
+ std::unique_ptr<CertVerifyImpl> CreateCertVerifyImplFromName(
+ base::StringPiece impl_name,
+ scoped_refptr<net::CertNetFetcher> cert_net_fetcher) {
+-#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
++#if !(BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD))
+ if (impl_name == "platform") {
+ return std::make_unique<CertVerifyImpl>(
+ "CertVerifyProc (system)", net::CertVerifyProc::CreateSystemVerifyProc(