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

Issue 17381012: Ensure that there is no "hidden" DNS lookup in secure socket code (Closed)

Created:
7 years, 6 months ago by Søren Gjesse
Modified:
7 years, 6 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Ensure that there is no "hidden" DNS lookup in secure socket code The required setting of the internet adddress of the peer for NSS is now using the internet address which have already been looked up in Dart code for normal secure socket connect. In the cases where SecureSocket.secure and RawSecureSocket.secure is used with a host name, the internet address of the already connected socket will be used. If that is not sufficient an IntetnetAddress from DNS lookup in Dart can be passed instead of just a host name. R=ajohnsen@google.com, whesse@google.com BUG=http://dartbug.com/11103 Committed: https://code.google.com/p/dart/source/detail?r=24174

Patch Set 1 #

Patch Set 2 : Minor fixes #

Patch Set 3 : Fixed dart2js testing #

Total comments: 4

Patch Set 4 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -23 lines) Patch
M runtime/bin/io_natives.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/secure_socket.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 5 chunks +41 lines, -19 lines 0 comments Download
M runtime/bin/secure_socket_patch.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/io/secure_socket.dart View 1 2 6 chunks +28 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Gjesse
Working on Linux, testing on Windows and Mac OS
7 years, 6 months ago (2013-06-19 07:42:11 UTC) #1
Søren Gjesse
Runs all standalone tests on Windows and Mac OS
7 years, 6 months ago (2013-06-19 08:30:43 UTC) #2
Anders Johnsen
LGTM https://codereview.chromium.org/17381012/diff/5001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/17381012/diff/5001/runtime/bin/secure_socket.cc#newcode597 runtime/bin/secure_socket.cc:597: ASSERT(sizeof(raw_addr->addr) < sizeof(peername)); raw_addr->addr -> raw_addr->ss or use ...
7 years, 6 months ago (2013-06-19 08:44:53 UTC) #3
Bill Hesse
LGTM.
7 years, 6 months ago (2013-06-19 08:48:11 UTC) #4
Søren Gjesse
https://codereview.chromium.org/17381012/diff/5001/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (right): https://codereview.chromium.org/17381012/diff/5001/runtime/bin/secure_socket.cc#newcode597 runtime/bin/secure_socket.cc:597: ASSERT(sizeof(raw_addr->addr) < sizeof(peername)); On 2013/06/19 08:44:53, Anders Johnsen wrote: ...
7 years, 6 months ago (2013-06-19 09:06:53 UTC) #5
Søren Gjesse
7 years, 6 months ago (2013-06-19 09:07:53 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r24174 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698