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

Unified Diff: net/base/ssl_info.cc

Issue 10545166: Support SHA-256 in public key pins for HTTPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_info.cc
===================================================================
--- net/base/ssl_info.cc (revision 148967)
+++ net/base/ssl_info.cc (working copy)
@@ -30,6 +30,7 @@
channel_id_sent = info.channel_id_sent;
handshake_type = info.handshake_type;
public_key_hashes = info.public_key_hashes;
+
return *this;
}
@@ -42,7 +43,13 @@
client_cert_sent = false;
channel_id_sent = false;
handshake_type = HANDSHAKE_UNKNOWN;
+
public_key_hashes.clear();
+ public_key_hashes.reserve(FINGERPRINT_TAGS_COUNT);
+ HashValueVector sha1s;
+ public_key_hashes.push_back(sha1s);
+ HashValueVector sha256s;
+ public_key_hashes.push_back(sha256s);
}
void SSLInfo::SetCertError(int error) {
« no previous file with comments | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698