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

Issue 1811583003: Don't compile in root certs on Android. (Closed)

Created:
4 years, 9 months ago by zra
Modified:
4 years, 9 months ago
Reviewers:
Bill Hesse, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't compile in root certs on Android. This works by using SSL_CTX_load_verify_locations in SecurityContext._trustBuiltinRoots() to specify /system/etc/security/cacerts as the certificate directory. This saves about 240KB from a stripped ProductAndroidARM build. This has the drawback that SSL_do_handshake will synchronously hit the filesystem looking for root certs during its trust evaluation. We call SSL_do_handshake directly from the Dart thread so that Dart code can be invoked from the "bad certificate" callback called by SSL_do_handshake. If there was no need to support this callback, it would be easier to move the handshake to the IOService thread, and thus remove the compiled-in certs without the need for blocking IO on the Dart thread. R=whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/27f5c1f81cd0b8a30da5be821caa871bf5c18bd0

Patch Set 1 #

Patch Set 2 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -6 lines) Patch
M runtime/bin/io_impl_sources.gypi View 1 3 chunks +9 lines, -2 lines 0 comments Download
A + runtime/bin/root_certificates_unsupported.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/bin/secure_socket_boringssl.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M runtime/tools/gyp/runtime-configurations.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M tools/gyp/configurations_android.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
zra
4 years, 9 months ago (2016-03-16 22:57:31 UTC) #2
Bill Hesse
LGTM.
4 years, 9 months ago (2016-03-18 14:53:01 UTC) #3
zra
4 years, 9 months ago (2016-03-22 16:30:10 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
27f5c1f81cd0b8a30da5be821caa871bf5c18bd0 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698