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

Issue 11414009: Secure server sockets for dart:io. Add TlsServerSocket class, providing SSL server sockets. (Closed)

Created:
8 years, 1 month ago by Bill Hesse
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Working tls server sockets. Add is_server parameter to _TlsSocket, pass it through to _TlsFilterImpl.connect. Add TlsServerSocket class. BUG= Committed: https://code.google.com/p/dart/source/detail?r=15163

Patch Set 1 #

Patch Set 2 : Pass certificate name to connect. #

Patch Set 3 : Add password passing, clean up test. #

Patch Set 4 : Clean up test for TlsServerSocket. #

Patch Set 5 : Add server certificate and key to certificate database. #

Total comments: 20

Patch Set 6 : Add README to test certificate database. #

Patch Set 7 : Address comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -49 lines) Patch
M runtime/bin/io_natives.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/tls_socket.h View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M runtime/bin/tls_socket.cc View 1 2 3 4 5 6 14 chunks +133 lines, -34 lines 0 comments Download
M runtime/bin/tls_socket_patch.dart View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M sdk/lib/io/io.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/io/iolib_sources.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/io/tls_server_socket.dart View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
M sdk/lib/io/tls_socket.dart View 1 2 3 5 chunks +43 lines, -8 lines 0 comments Download
A tests/standalone/io/pkcert/README View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M tests/standalone/io/pkcert/cert9.db View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/standalone/io/pkcert/key4.db View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A tests/standalone/io/tls_server_test.dart View 1 2 3 4 5 6 1 chunk +109 lines, -0 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Bill Hesse
8 years, 1 month ago (2012-11-20 13:42:51 UTC) #1
Mads Ager (google)
LGTM with comments addressed. https://codereview.chromium.org/11414009/diff/9001/runtime/bin/tls_socket.cc File runtime/bin/tls_socket.cc (right): https://codereview.chromium.org/11414009/diff/9001/runtime/bin/tls_socket.cc#newcode185 runtime/bin/tls_socket.cc:185: password = NULL; In that ...
8 years, 1 month ago (2012-11-20 14:59:44 UTC) #2
Bill Hesse
https://codereview.chromium.org/11414009/diff/9001/runtime/bin/tls_socket.cc File runtime/bin/tls_socket.cc (right): https://codereview.chromium.org/11414009/diff/9001/runtime/bin/tls_socket.cc#newcode185 runtime/bin/tls_socket.cc:185: password = NULL; On 2012/11/20 14:59:45, Mads Ager wrote: ...
8 years, 1 month ago (2012-11-20 17:46:55 UTC) #3
Søren Gjesse
8 years, 1 month ago (2012-11-20 21:03:34 UTC) #4
https://codereview.chromium.org/11414009/diff/3011/tests/standalone/io/tls_se...
File tests/standalone/io/tls_server_test.dart (right):

https://codereview.chromium.org/11414009/diff/3011/tests/standalone/io/tls_se...
tests/standalone/io/tls_server_test.dart:16: var data = connection.read();
This read is not guaranteed to return a specific amount of data, so you should
wait with checking the expectation until the expected number of bytes has been
read.

https://codereview.chromium.org/11414009/diff/3011/tests/standalone/io/tls_se...
tests/standalone/io/tls_server_test.dart:21: connection.writeList(reply_bytes,
0, reply_bytes.length);
Likewise the writeList is not guaranteed to write all the bytes passed to it.

https://codereview.chromium.org/11414009/diff/3011/tests/standalone/io/tls_se...
tests/standalone/io/tls_server_test.dart:57: socket.writeList(request_bytes, 0,
request_bytes.length);
Ditto.

https://codereview.chromium.org/11414009/diff/3011/tests/standalone/io/tls_se...
tests/standalone/io/tls_server_test.dart:61: var data = socket.read();
Ditto.

Powered by Google App Engine
This is Rietveld 408576698