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

Issue 2867026: Make X509Certificate::CreateFromHandle() copy the OSCertHandle, rather than assume ownership (Closed)

Created:
10 years, 6 months ago by Ryan Sleevi
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Make X509Certificate::CreateFromHandle() copy the OSCertHandle, rather than assume ownership R=wtc BUG=47463 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50938

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address wtc's comments #

Patch Set 3 : Deleted one comment too many #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -30 lines) Patch
M chrome/browser/ssl/ssl_client_auth_handler_win.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/base/cert_test_util.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M net/base/x509_certificate.h View 1 chunk +5 lines, -7 lines 0 comments Download
M net/base/x509_certificate.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M net/base/x509_certificate_unittest.cc View 7 chunks +10 lines, -6 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_mac.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 3 chunks +5 lines, -2 lines 0 comments Download
M net/socket/ssl_client_socket_win.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Ryan Sleevi
Follow-up from http://codereview.chromium.org/2809024/show On 2010/06/24 02:33:46, wtc wrote: > I find it confusing that the ...
10 years, 6 months ago (2010-06-25 03:40:20 UTC) #1
wtc
LGTM, except the problem marked with "ISSUE" below in x509_certificate_mac.cc. Some of the FreeOSCertHandle calls ...
10 years, 6 months ago (2010-06-26 17:06:22 UTC) #2
Ryan Sleevi
Fixed the nits, save for introducing a X509Certificate::ScopedOSCertHandle. http://codereview.chromium.org/2867026/diff/1/5 File net/base/x509_certificate.h (right): http://codereview.chromium.org/2867026/diff/1/5#newcode90 net/base/x509_certificate.h:90: // ...
10 years, 6 months ago (2010-06-26 18:16:24 UTC) #3
wtc
10 years, 6 months ago (2010-06-26 18:30:33 UTC) #4
LGTM!  Just one nit below.  You can check this in.  Thanks!

http://codereview.chromium.org/2867026/diff/1/4
File net/base/x509_certificate.cc (right):

http://codereview.chromium.org/2867026/diff/1/4#newcode143
net/base/x509_certificate.cc:143: // Return the certificate with the same
fingerprint from our cache.
Keep line 143.
Delete only line 144.

Powered by Google App Engine
This is Rietveld 408576698