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

Issue 10704159: Start adding TLS (SSL) sockets to dart:io. (Closed)

Created:
8 years, 5 months ago by Bill Hesse
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Start adding TLS (SSL) sockets to dart:io. Add Linux implementation for SSL client sockets. BUG=dart:3950 TEST=standalone/io/tls_socket_test Committed: https://code.google.com/p/dart/source/detail?r=10565 Reverted: r=10567 Committed: https://code.google.com/p/dart/source/detail?r=10650

Patch Set 1 #

Patch Set 2 : Working with null filter! #

Patch Set 3 : Get secure socket working, refactor to CBuffer. #

Patch Set 4 : Whoo Hooo. #

Patch Set 5 : Use ExternalByteArrays on Plaintext side of filter. #

Patch Set 6 : Working copy with data flow polished #

Patch Set 7 : Refactor four methods into one ProcessBuffer method. #

Patch Set 8 : Add proper event handling during handshake phase of connection. #

Total comments: 22

Patch Set 9 : Intermediate upload to fix a git issue. #

Patch Set 10 : #

Patch Set 11 : Add tls_socket.dart back. This should not be compared to socket.dart. #

Total comments: 54

Patch Set 12 : Address some comments. #

Patch Set 13 : #

Patch Set 14 : Stub out win32 and macos platforms. #

Total comments: 12

Patch Set 15 : Adress comments #

Patch Set 16 : Address comments. #

Patch Set 17 : Add -lcrypto flag so the gold linker can link SSL libraries. #

Patch Set 18 : Add Android stubs for TlsSocket implementation. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+990 lines, -21 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +27 lines, -12 lines 0 comments Download
M runtime/bin/file.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -7 lines 0 comments Download
M runtime/bin/io_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +66 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +157 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket.dart View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +12 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +77 lines, -0 lines 1 comment Download
A runtime/bin/tls_socket_impl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +310 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +130 lines, -0 lines 3 comments Download
A runtime/bin/tls_socket_macos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +77 lines, -0 lines 0 comments Download
A runtime/bin/tls_socket_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +77 lines, -0 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A tests/standalone/io/tls_socket_test.dart View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +32 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Bill Hesse
I'm considering merging the two Dart classes. Please take a look and tell me what ...
8 years, 4 months ago (2012-07-27 13:45:34 UTC) #1
Anders Johnsen
First round of comments. I have not looked at the logic yet, will comment on ...
8 years, 4 months ago (2012-07-27 15:58:49 UTC) #2
Søren Gjesse
Some initial comments. The overall structure looks fine. http://codereview.chromium.org/10704159/diff/18015/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): http://codereview.chromium.org/10704159/diff/18015/runtime/bin/dartutils.cc#newcode335 runtime/bin/dartutils.cc:335: // ...
8 years, 4 months ago (2012-07-31 09:07:15 UTC) #3
Mads Ager (google)
Drive-by comments. Overall, this is looking good. http://codereview.chromium.org/10704159/diff/18015/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): http://codereview.chromium.org/10704159/diff/18015/runtime/bin/bin.gypi#newcode1 runtime/bin/bin.gypi:1: Please undo ...
8 years, 4 months ago (2012-07-31 10:16:01 UTC) #4
Bill Hesse
OK. All comments have been addressed, and there has been plenty of other clean up. ...
8 years, 4 months ago (2012-08-08 17:00:05 UTC) #5
Søren Gjesse
LGTM with comments addressed http://codereview.chromium.org/10704159/diff/13020/runtime/bin/builtin_impl_sources.gypi File runtime/bin/builtin_impl_sources.gypi (right): http://codereview.chromium.org/10704159/diff/13020/runtime/bin/builtin_impl_sources.gypi#newcode67 runtime/bin/builtin_impl_sources.gypi:67: 'tls_socket_linux.cc', Don't we need empty ...
8 years, 4 months ago (2012-08-09 10:22:52 UTC) #6
Bill Hesse
http://codereview.chromium.org/10704159/diff/13020/runtime/bin/builtin_impl_sources.gypi File runtime/bin/builtin_impl_sources.gypi (right): http://codereview.chromium.org/10704159/diff/13020/runtime/bin/builtin_impl_sources.gypi#newcode67 runtime/bin/builtin_impl_sources.gypi:67: 'tls_socket_linux.cc', On 2012/08/09 10:22:52, Søren Gjesse wrote: > Don't ...
8 years, 4 months ago (2012-08-13 11:20:03 UTC) #7
siva
This change has pretty much broken the linux build for all of us who were ...
8 years, 4 months ago (2012-08-14 20:26:34 UTC) #8
cshapiro
DBC https://chromiumcodereview.appspot.com/10704159/diff/24010/runtime/bin/tls_socket_android.cc File runtime/bin/tls_socket_android.cc (right): https://chromiumcodereview.appspot.com/10704159/diff/24010/runtime/bin/tls_socket_android.cc#newcode10 runtime/bin/tls_socket_android.cc:10: class TlsFilterPlatformData { There is no SSL library ...
8 years, 4 months ago (2012-08-14 21:17:25 UTC) #9
Ivan Posva
8 years, 4 months ago (2012-08-15 04:36:43 UTC) #10
Bill,

Please revert this change as it causes build breaks on the platforms where TLS
sockets are currently implemented and there is no clear way forward yet on
Windows. We need a better plan for this before checking this in again.

Thanks,
-Ivan

Powered by Google App Engine
This is Rietveld 408576698