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

Issue 1665433002: Adds SecurityContext.setTrustedCertificatesBytes (Closed)

Created:
4 years, 10 months ago by zra
Modified:
4 years, 10 months ago
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

Adds SecurityContext.setTrustedCertificatesBytes Implements SecurityContext.setTrustedCertificates in terms of the new function. This requires setTrustedCertificates to return a Future, and removing the `directory` named argument as it is not possible to implement with BoringSSL without blocking IO. R=whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/2cf6405ca9fe3f87d90ed75d015c960b78a49ce9

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : Factor out common code #

Patch Set 7 : Update changelog #

Patch Set 8 : Merge with CL adding setClientAuthoritiesBytes #

Total comments: 4

Patch Set 9 : Adds MemBIOScope #

Total comments: 10

Patch Set 10 : Use Sync functions in tests. Add back deprecated functions. #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -317 lines) Patch
M CHANGELOG.md View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/io_natives.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 4 5 6 7 8 9 8 chunks +152 lines, -116 lines 0 comments Download
M runtime/bin/secure_socket_patch.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +37 lines, -12 lines 0 comments Download
M runtime/bin/secure_socket_unsupported.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/io/http.dart View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/io/security_context.dart View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +57 lines, -19 lines 0 comments Download
M tests/standalone/io/http_proxy_advanced_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M tests/standalone/io/https_bad_certificate_test.dart View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/io/https_client_certificate_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -8 lines 0 comments Download
M tests/standalone/io/https_server_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/https_unauthorized_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_server_closing_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_server_socket_test.dart View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -7 lines 0 comments Download
M tests/standalone/io/raw_secure_socket_pause_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_socket_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/regress_21160_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_bad_certificate_test.dart View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_server_client_certificate_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -11 lines 0 comments Download
M tests/standalone/io/secure_server_closing_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_server_socket_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_socket_alpn_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_socket_renegotiate_client.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_socket_renegotiate_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M tests/standalone/io/secure_socket_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_unauthorized_client.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_unauthorized_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M tests/standalone/io/security_context_argument_test.dart View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -18 lines 0 comments Download
M tests/standalone/io/socket_upgrade_to_secure_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M tests/standalone/io/web_socket_compression_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M tests/standalone/io/web_socket_error_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
zra
4 years, 10 months ago (2016-02-02 21:14:24 UTC) #3
Bill Hesse
We don't know if we have users using the directory argument, but if so, they ...
4 years, 10 months ago (2016-02-02 23:17:32 UTC) #4
zra
On 2016/02/02 23:17:32, Bill Hesse wrote: > We don't know if we have users using ...
4 years, 10 months ago (2016-02-03 07:06:59 UTC) #5
Bill Hesse
Sorry I didn't get to this today, but Søren asked today why all of these ...
4 years, 10 months ago (2016-02-04 18:54:36 UTC) #6
kevmoo
This *is* a breaking change – for a feature we just added. https://codereview.chromium.org/1665433002/diff/40001/CHANGELOG.md File CHANGELOG.md ...
4 years, 10 months ago (2016-02-04 19:14:54 UTC) #8
zra
On 2016/02/04 18:54:36, Bill Hesse wrote: > Sorry I didn't get to this today, but ...
4 years, 10 months ago (2016-02-04 22:31:02 UTC) #9
zra
https://codereview.chromium.org/1665433002/diff/40001/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/1665433002/diff/40001/CHANGELOG.md#newcode10 CHANGELOG.md:10: The non-`Bytes` methods now return a `Future`. On 2016/02/04 ...
4 years, 10 months ago (2016-02-04 22:31:41 UTC) #10
zra
Merged https://codereview.chromium.org/1663633003/ into here.
4 years, 10 months ago (2016-02-05 04:02:54 UTC) #11
Bill Hesse
First comments, more in 4-5 hours. https://codereview.chromium.org/1665433002/diff/140001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1665433002/diff/140001/runtime/bin/secure_socket.cc#newcode379 runtime/bin/secure_socket.cc:379: static bool GetBIOArgument(Dart_Handle ...
4 years, 10 months ago (2016-02-05 14:48:18 UTC) #12
zra
https://codereview.chromium.org/1665433002/diff/140001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1665433002/diff/140001/runtime/bin/secure_socket.cc#newcode379 runtime/bin/secure_socket.cc:379: static bool GetBIOArgument(Dart_Handle object, BIO** bio) { On 2016/02/05 ...
4 years, 10 months ago (2016-02-05 17:18:22 UTC) #13
Bill Hesse
LGTM, with comments. https://codereview.chromium.org/1665433002/diff/160001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1665433002/diff/160001/runtime/bin/secure_socket.cc#newcode397 runtime/bin/secure_socket.cc:397: ThrowIfError(Dart_TypedDataAcquireData( Any idea what PropagateError from ...
4 years, 10 months ago (2016-02-05 21:35:40 UTC) #14
kevmoo
I'm looking at the delta here from what's in 1.14 https://api.dartlang.org/1.14.1/dart-io/SecurityContext-class.html We're going to break ...
4 years, 10 months ago (2016-02-05 22:26:06 UTC) #15
zra
https://codereview.chromium.org/1665433002/diff/160001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1665433002/diff/160001/runtime/bin/secure_socket.cc#newcode397 runtime/bin/secure_socket.cc:397: ThrowIfError(Dart_TypedDataAcquireData( On 2016/02/05 21:35:39, Bill Hesse wrote: > Any ...
4 years, 10 months ago (2016-02-05 23:10:39 UTC) #16
Bill Hesse
lgtm
4 years, 10 months ago (2016-02-08 09:24:50 UTC) #17
zra
4 years, 10 months ago (2016-02-08 16:41:53 UTC) #19
Message was sent while issue was closed.
Committed patchset #13 (id:240001) manually as
2cf6405ca9fe3f87d90ed75d015c960b78a49ce9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698