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

Unified Diff: net/base/cert_verify_result.h

Issue 10825211: Implement SHA-256 fingerprint support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
Index: net/base/cert_verify_result.h
===================================================================
--- net/base/cert_verify_result.h (revision 150170)
+++ net/base/cert_verify_result.h (working copy)
@@ -45,10 +45,15 @@
bool has_md5_ca;
bool has_md2_ca;
- // If the certificate was successfully verified then this contains the SHA1
- // fingerprints of the SubjectPublicKeyInfos of the chain. The fingerprint
- // from the leaf certificate will be the first element of the vector.
- std::vector<SHA1Fingerprint> public_key_hashes;
+ // If the certificate was successfully verified then this contains the
+ // fingerprints, in several hash algorithms, of the SubjectPublicKeyInfos
+ // of the chain. The fingerprint from the leaf certificate will be the
+ // first element of each sub-vector.
+ //
+ // This is a vector of vectors: Index the outer vector with
+ // FingerprintTag, and then the inner HashValueVectors will be
+ // fingerprints made with the algorithm named by the FingerprintTag.
+ std::vector<HashValueVector> public_key_hashes;
// is_issued_by_known_root is true if we recognise the root CA as a standard
// root. If it isn't then it's probably the case that this certificate was

Powered by Google App Engine
This is Rietveld 408576698