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

Issue 576233002: Only use the platform cert in verification in SSLClientSocketOpenSSL. (Closed)

Created:
6 years, 3 months ago by davidben
Modified:
6 years, 3 months ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Only use the platform cert in verification in SSLClientSocketOpenSSL. Align with SSLClientSocketNSS's behavior around the PeerCertificate object. Within the sandbox for Chromoting, the platform certificate may be unavailable while the SSL-layer certificate is. Match NSS in using the SSL-layer certificate for many operations. Also check appropriately for the platform certificate being NULL in DoVerifyCert rather than simply crashing. BUG=414315 TEST=Install Chromoting app. Connecting to another computer works. Committed: https://crrev.com/30798ed89c20e306765869a22f7d318daa209fed Cr-Commit-Position: refs/heads/master@{#295764}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rsleevi comments #

Patch Set 3 : x509_certiifcate_openssl #

Patch Set 4 : Actually fix Android build #

Total comments: 4

Patch Set 5 : don't export two versions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -173 lines) Patch
M net/cert/x509_certificate_openssl.cc View 1 2 3 4 9 chunks +16 lines, -84 lines 0 comments Download
M net/cert/x509_util_openssl.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M net/cert/x509_util_openssl.cc View 1 2 3 4 5 chunks +72 lines, -11 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 10 chunks +71 lines, -77 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
davidben
Compare against NSS uses of server_cert and server_cert_chain. Tested manually with Chromoting and https://scripts.mit.edu/__scripts/certerror (my ...
6 years, 3 months ago (2014-09-17 20:10:55 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/576233002/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/576233002/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode139 net/socket/ssl_client_socket_openssl.cc:139: bool GetDEREncodedX509(X509* x509, std::string* out_der) { This seems to ...
6 years, 3 months ago (2014-09-18 01:34:39 UTC) #3
davidben
https://codereview.chromium.org/576233002/diff/1/net/socket/ssl_client_socket_openssl.cc File net/socket/ssl_client_socket_openssl.cc (right): https://codereview.chromium.org/576233002/diff/1/net/socket/ssl_client_socket_openssl.cc#newcode139 net/socket/ssl_client_socket_openssl.cc:139: bool GetDEREncodedX509(X509* x509, std::string* out_der) { On 2014/09/18 01:34:39, ...
6 years, 3 months ago (2014-09-18 19:40:06 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h File net/cert/x509_util_openssl.h (right): https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h#newcode49 net/cert/x509_util_openssl.h:49: Why does this need to be exported? It is ...
6 years, 3 months ago (2014-09-19 15:56:54 UTC) #5
davidben
https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h File net/cert/x509_util_openssl.h (right): https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h#newcode49 net/cert/x509_util_openssl.h:49: On 2014/09/19 15:56:54, Ryan Sleevi wrote: > Why does ...
6 years, 3 months ago (2014-09-19 16:53:40 UTC) #6
Ryan Sleevi
LGTM with the move to .cc and rename of AndCacheIfNeeded to just GetDER https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h File ...
6 years, 3 months ago (2014-09-19 17:39:33 UTC) #7
davidben
https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h File net/cert/x509_util_openssl.h (right): https://codereview.chromium.org/576233002/diff/60001/net/cert/x509_util_openssl.h#newcode49 net/cert/x509_util_openssl.h:49: On 2014/09/19 17:39:33, Ryan Sleevi wrote: > On 2014/09/19 ...
6 years, 3 months ago (2014-09-19 18:10:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/576233002/80001
6 years, 3 months ago (2014-09-19 19:04:30 UTC) #10
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 899a36a123075539d6244caf401bb98b506c9c8d
6 years, 3 months ago (2014-09-19 19:28:29 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 19:32:14 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/30798ed89c20e306765869a22f7d318daa209fed
Cr-Commit-Position: refs/heads/master@{#295764}

Powered by Google App Engine
This is Rietveld 408576698