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

Issue 11467004: Enable client certificates in SecureSocket and SecureServerSocket (Closed)

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

Description

Enable client certificates in SecureSocket and SecureServerSocket BUG= Committed: https://code.google.com/p/dart/source/detail?r=15957

Patch Set 1 #

Patch Set 2 : Add SecureSocket.peerCertificate accessor. #

Patch Set 3 : Add more comments #

Total comments: 14

Patch Set 4 : Address comments. #

Total comments: 6

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -178 lines) Patch
M runtime/bin/io_natives.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/secure_socket.h View 1 1 chunk +6 lines, -4 lines 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 4 13 chunks +99 lines, -71 lines 0 comments Download
M runtime/bin/secure_socket_patch.dart View 1 2 chunks +6 lines, -1 line 0 comments Download
M sdk/lib/io/secure_server_socket.dart View 1 2 3 4 3 chunks +42 lines, -20 lines 0 comments Download
M sdk/lib/io/secure_socket.dart View 1 2 3 4 19 chunks +132 lines, -79 lines 0 comments Download
M tests/standalone/io/pkcert/cert9.db View 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/standalone/io/pkcert/key4.db View 0 chunks +-1 lines, --1 lines 0 comments Download
A + tests/standalone/io/secure_server_client_certificate_test.dart View 1 4 chunks +10 lines, -3 lines 0 comments Download
M tests/standalone/io/secure_server_test.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Bill Hesse
8 years ago (2012-12-07 11:10:54 UTC) #1
Søren Gjesse
I think it will be beneficial to combine some of the booleans used into "enums" ...
8 years ago (2012-12-07 13:00:23 UTC) #2
Bill Hesse
Addressed comments: I gave my reasons for using 3 boolean variables in the API, rather ...
8 years ago (2012-12-10 15:15:48 UTC) #3
Søren Gjesse
LGTM
8 years ago (2012-12-10 15:28:01 UTC) #4
Mads Ager (google)
LGTM Now, we need to take this up to the HTTP level where an HTTP ...
8 years ago (2012-12-11 07:45:26 UTC) #5
Bill Hesse
8 years ago (2012-12-11 09:20:53 UTC) #6
https://codereview.chromium.org/11467004/diff/9001/runtime/bin/secure_socket.cc
File runtime/bin/secure_socket.cc (right):

https://codereview.chromium.org/11467004/diff/9001/runtime/bin/secure_socket....
runtime/bin/secure_socket.cc:92: ASSERT(false);
On 2012/12/11 07:45:27, Mads Ager wrote:
> Can we use FATAL here with a string explaining what went wrong?

Done.

https://codereview.chromium.org/11467004/diff/9001/sdk/lib/io/secure_server_s...
File sdk/lib/io/secure_server_socket.dart (right):

https://codereview.chromium.org/11467004/diff/9001/sdk/lib/io/secure_server_s...
sdk/lib/io/secure_server_socket.dart:98: final bool requireClientCertificate;}
On 2012/12/11 07:45:27, Mads Ager wrote:
> Move the '}' where it belongs.

Done.

https://codereview.chromium.org/11467004/diff/9001/sdk/lib/io/secure_socket.dart
File sdk/lib/io/secure_socket.dart (right):

https://codereview.chromium.org/11467004/diff/9001/sdk/lib/io/secure_socket.d...
sdk/lib/io/secure_socket.dart:151: if (requestClientCertificate is! bool) throw
new ArgumentError(
On 2012/12/11 07:45:27, Mads Ager wrote:
> Please use curly braces when using multiple lines for an if statement:
> 
> if (requestClientCertificate is! bool) {
>   throw new ArgumentError(
>       "SecureSocket constructor: ...");
> }
> 
> Please update all three of these.

Done.

Powered by Google App Engine
This is Rietveld 408576698