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

Issue 8414047: Make X509Certificate::GetDEREncoded a static function taking an OSCertHandle (Closed)

Created:
9 years, 1 month ago by Ryan Sleevi
Modified:
9 years, 1 month ago
Reviewers:
wtc, agl
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, cbentzel+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org, wtc
Visibility:
Public.

Description

Make X509Certificate::GetDEREncoded a static function taking an OSCertHandle Rather than require an X509Certificate*, which has additional processing overhead, make X509Certificate::GetDEREncoded a static function which takes an OSCertHandle. Callers which already have an X509Certificate* can easily use ->os_cert_handle(), while those that have an OSCertHandle, such as by way of GetIntermediateCertificates(), can use the OSCertHandle directly. BUG=91464 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108067

Patch Set 1 #

Patch Set 2 : Add two missing // static comments #

Patch Set 3 : Fix compile error #

Patch Set 4 : Fix compile error #

Patch Set 5 : Errant comment #

Total comments: 2

Patch Set 6 : Rebase and tweak comment to wtc's verbiage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -44 lines) Patch
M chrome/browser/net/chrome_fraudulent_certificate_reporter.cc View 1 2 2 chunks +5 lines, -8 lines 0 comments Download
M net/base/ssl_config_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/x509_certificate.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/socket/ssl_server_socket_nss.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/socket_stream/socket_stream.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/host_key_pair.cc View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ryan Sleevi
agl: Since I've been slamming wtc with reviews, would you mind taking this one? Perfunctory ...
9 years, 1 month ago (2011-10-30 04:27:02 UTC) #1
agl
LGTM
9 years, 1 month ago (2011-10-30 14:43:20 UTC) #2
wtc
Patch Set 5 LGTM. Good cleanup, especially replacing clear()+append() with assign(). Just two comment nits ...
9 years, 1 month ago (2011-10-31 19:05:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/8414047/13001
9 years, 1 month ago (2011-11-01 02:11:28 UTC) #4
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 03:15:31 UTC) #5
Change committed as 108067

Powered by Google App Engine
This is Rietveld 408576698