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

Issue 10825211: Implement SHA-256 fingerprint support (Closed)

Created:
8 years, 4 months ago by palmer
Modified:
8 years, 4 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman, darin-cc_chromium.org, mmenke, Jeffrey Yasskin
Visibility:
Public.

Description

Implement SHA-256 fingerprint support The HTTP-based Public Key Pinning Internet Draft (tools.ietf.org/html/draft-ietf-websec-key-pinning) requires this. Per wtc, give the *Fingeprint* types more meaningful *HashValue* names. Cleaning up lint along the way. BUG=117914 TEST=net_unittests, unit_tests TransportSecurityPersisterTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150375

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -259 lines) Patch
M chrome/browser/net/transport_security_persister.cc View 1 1 chunk +23 lines, -9 lines 0 comments Download
M chrome/browser/net/transport_security_persister_unittest.cc View 1 5 chunks +26 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 chunks +20 lines, -6 lines 0 comments Download
M net/base/cert_test_util.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/cert_test_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/base/cert_verify_proc.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/cert_verify_proc.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M net/base/cert_verify_proc_mac.cc View 1 4 chunks +14 lines, -5 lines 0 comments Download
M net/base/cert_verify_proc_nss.cc View 1 3 chunks +25 lines, -8 lines 0 comments Download
M net/base/cert_verify_proc_openssl.cc View 1 3 chunks +14 lines, -4 lines 0 comments Download
M net/base/cert_verify_proc_unittest.cc View 1 3 chunks +15 lines, -9 lines 0 comments Download
M net/base/cert_verify_proc_win.cc View 1 5 chunks +15 lines, -6 lines 0 comments Download
M net/base/cert_verify_result.h View 1 1 chunk +9 lines, -4 lines 0 comments Download
M net/base/cert_verify_result.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M net/base/ev_root_ca_metadata.h View 1 5 chunks +9 lines, -8 lines 0 comments Download
M net/base/ev_root_ca_metadata.cc View 1 9 chunks +10 lines, -10 lines 0 comments Download
M net/base/ev_root_ca_metadata_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/multi_threaded_cert_verifier.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/multi_threaded_cert_verifier_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/ssl_info.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M net/base/ssl_info.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
M net/base/transport_security_state.h View 1 4 chunks +7 lines, -6 lines 0 comments Download
M net/base/transport_security_state.cc View 1 10 chunks +101 lines, -60 lines 0 comments Download
M net/base/transport_security_state_unittest.cc View 1 14 chunks +85 lines, -33 lines 0 comments Download
M net/base/x509_cert_types.h View 1 3 chunks +115 lines, -13 lines 1 comment Download
M net/base/x509_cert_types.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/base/x509_certificate.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M net/base/x509_certificate.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/x509_certificate_mac.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M net/base/x509_certificate_nss.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/x509_certificate_openssl.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/base/x509_certificate_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M net/base/x509_certificate_win.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M net/socket/ssl_client_socket_nss.h View 1 1 chunk +1 line, -1 line 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 chunks +10 lines, -6 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
wtc
https://chromiumcodereview.appspot.com/10825211/diff/1/net/base/x509_cert_types.h File net/base/x509_cert_types.h (right): https://chromiumcodereview.appspot.com/10825211/diff/1/net/base/x509_cert_types.h#newcode100 net/base/x509_cert_types.h:100: return sizeof(fingerprint.sha1.data); What was the problem that caused the ...
8 years, 4 months ago (2012-08-07 00:46:02 UTC) #1
palmer
> What was the problem that caused the revert? A compiler warning about calling memset ...
8 years, 4 months ago (2012-08-07 04:41:39 UTC) #2
wtc
palmer: which memset call did the compiler warn about? I searched for "memset" and "size()" ...
8 years, 4 months ago (2012-08-07 15:00:53 UTC) #3
Jeffrey Yasskin
On Mon, Aug 6, 2012 at 9:41 PM, <palmer@chromium.org> wrote: > Reviewers: wtc, > > ...
8 years, 4 months ago (2012-08-07 17:03:02 UTC) #4
palmer
> https://chromiumcodereview.appspot.com/10825211/diff/1/chrome/browser/net/transport_security_persister_unittest.cc#newcode203 > chrome/browser/net/transport_security_persister_unittest.cc:203: DLOG(WARNING) > << hashes[net::HASH_VALUE_SHA1].size(); > > Nit: should these two lines ...
8 years, 4 months ago (2012-08-07 20:39:35 UTC) #5
wtc
https://chromiumcodereview.appspot.com/10825211/diff/12002/net/base/x509_cert_types.h File net/base/x509_cert_types.h (right): https://chromiumcodereview.appspot.com/10825211/diff/12002/net/base/x509_cert_types.h#newcode100 net/base/x509_cert_types.h:100: return sizeof(fingerprint.sha1.data); The reason we have to return a ...
8 years, 4 months ago (2012-08-08 18:16:25 UTC) #6
palmer
> The reason we have to return a non-zero value in the default > case ...
8 years, 4 months ago (2012-08-08 18:40:29 UTC) #7
wtc
8 years, 4 months ago (2012-08-09 01:15:10 UTC) #8
Inlining a method in a .cc file probably will only
happen when whole program optimization is turned on.
The reason I suggested defining the size() method in
a .cc file is that it allows size() to return 0 when
data() returns NULL.  Returning a nonzero value such
as 1 is fine by me, but the reason should be documented.

We should work with one of our GCC/clang people such
as thakis to create a reduced test case and submit a
bug report to GCC.

Powered by Google App Engine
This is Rietveld 408576698