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

Issue 1616073004: Adds SecurityContext.usePrivateKeyBytes (Closed)

Created:
4 years, 11 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.usePrivateKeyBytes This is the first step toward removing blocking IO calls from the implementation of the SecurityContext API. Using a buffer rather than a file name API will probably be needed for implementing SecurityContext and SecureSocket with platform specific built-in APIs on iOS/Mac/Windows rather than BoringSSL. related #8227 R=whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/98771a083f13c1aebc5ebf599b52778b42b21f80

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Un-deprecate usePrivateKey. Implement using usePrivateKeyAsBytes #

Total comments: 4

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -103 lines) Patch
M runtime/bin/io_natives.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 4 2 chunks +43 lines, -13 lines 0 comments Download
M runtime/bin/secure_socket_patch.dart View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/bin/secure_socket_unsupported.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/io/http.dart View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/io/security_context.dart View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M tests/standalone/io/http_proxy_advanced_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/https_bad_certificate_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/https_client_certificate_test.dart View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M tests/standalone/io/https_server_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/https_unauthorized_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/raw_secure_server_closing_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/raw_secure_server_socket_test.dart View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M tests/standalone/io/raw_secure_socket_pause_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/raw_secure_socket_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/regress_21160_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_bad_certificate_test.dart View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_server_client_certificate_test.dart View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M tests/standalone/io/secure_server_closing_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_server_socket_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_socket_alpn_test.dart View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M tests/standalone/io/secure_socket_renegotiate_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_socket_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/secure_unauthorized_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/security_context_argument_test.dart View 1 2 3 1 chunk +21 lines, -17 lines 0 comments Download
M tests/standalone/io/socket_upgrade_to_secure_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/web_socket_compression_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/web_socket_error_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
zra
4 years, 11 months ago (2016-01-25 22:55:23 UTC) #6
kevmoo
Is the breaking change strictly necessary? It's a bit annoying to break folks who had ...
4 years, 11 months ago (2016-01-25 23:49:29 UTC) #8
zra
https://codereview.chromium.org/1616073004/diff/20001/sdk/lib/io/security_context.dart File sdk/lib/io/security_context.dart (right): https://codereview.chromium.org/1616073004/diff/20001/sdk/lib/io/security_context.dart#newcode36 sdk/lib/io/security_context.dart:36: /** On 2016/01/25 23:49:29, kevmoo wrote: > Update the ...
4 years, 11 months ago (2016-01-25 23:59:39 UTC) #9
zra
On 2016/01/25 23:49:29, kevmoo wrote: > Is the breaking change strictly necessary? It's a bit ...
4 years, 11 months ago (2016-01-26 00:01:01 UTC) #10
Bill Hesse
I am not OK with deprecating the existing usePrivateKey method, and also think the tests ...
4 years, 11 months ago (2016-01-26 12:54:49 UTC) #12
zra
On 2016/01/26 12:54:49, Bill Hesse wrote: > I am not OK with deprecating the existing ...
4 years, 11 months ago (2016-01-26 17:40:38 UTC) #13
zra
Ping
4 years, 11 months ago (2016-01-27 18:16:14 UTC) #15
zra
Ping
4 years, 10 months ago (2016-01-28 19:01:44 UTC) #16
Bill Hesse
On 2016/01/28 19:01:44, zra wrote: > Ping I'm leaving now, but tomorrow I'll do it.
4 years, 10 months ago (2016-01-28 19:06:56 UTC) #17
zra
On 2016/01/28 19:06:56, Bill Hesse wrote: > On 2016/01/28 19:01:44, zra wrote: > > Ping ...
4 years, 10 months ago (2016-01-28 19:10:06 UTC) #18
Bill Hesse
LGTM. https://codereview.chromium.org/1616073004/diff/60001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1616073004/diff/60001/runtime/bin/secure_socket.cc#newcode421 runtime/bin/secure_socket.cc:421: ThrowIfError(Dart_ListGetAsBytes(key_object, 0, key_bytes, key_bytes_len)); Leak of key_bytes in ...
4 years, 10 months ago (2016-01-29 14:41:50 UTC) #19
zra
https://codereview.chromium.org/1616073004/diff/60001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/1616073004/diff/60001/runtime/bin/secure_socket.cc#newcode421 runtime/bin/secure_socket.cc:421: ThrowIfError(Dart_ListGetAsBytes(key_object, 0, key_bytes, key_bytes_len)); On 2016/01/29 14:41:50, Bill Hesse ...
4 years, 10 months ago (2016-01-29 16:47:49 UTC) #20
zra
4 years, 10 months ago (2016-01-29 16:52:23 UTC) #22
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
98771a083f13c1aebc5ebf599b52778b42b21f80 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698