Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(764)

Unified Diff: runtime/bin/security_context_fuchsia.cc

Issue 2934523003: [Fuchsia] Use the trusted certs in the image (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/runtime_args.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/security_context_fuchsia.cc
diff --git a/runtime/bin/security_context_fuchsia.cc b/runtime/bin/security_context_fuchsia.cc
index c49476bd6c59ef02db551d8735a33c66c840ba67..386ad5e7df658d685f7ab8f26c4be347a412df99 100644
--- a/runtime/bin/security_context_fuchsia.cc
+++ b/runtime/bin/security_context_fuchsia.cc
@@ -44,12 +44,12 @@ void SSLCertContext::TrustBuiltinRoots() {
return;
}
- // Fall back on the compiled-in certs if the standard locations don't exist,
- // or we aren't on Linux.
- if (SSL_LOG_STATUS) {
- Log::Print("Trusting compiled-in roots\n");
+ const char* bundle = "/system/data/boringssl/cert.pem";
+ if (!File::Exists(bundle)) {
+ FATAL1("Failed to find trusted certs at %s\n", bundle);
}
- AddCompiledInCerts();
+
+ LoadRootCertFile(bundle);
}
« no previous file with comments | « no previous file | runtime/runtime_args.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698