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

Unified Diff: net/base/x509_certificate.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/x509_certificate.h
===================================================================
--- net/base/x509_certificate.h (revision 150170)
+++ net/base/x509_certificate.h (working copy)
@@ -247,10 +247,10 @@
const base::Time& valid_expiry() const { return valid_expiry_; }
// The fingerprint of this certificate.
- const SHA1Fingerprint& fingerprint() const { return fingerprint_; }
+ const SHA1HashValue& fingerprint() const { return fingerprint_; }
// The fingerprint of the intermediate CA certificates.
- const SHA1Fingerprint& ca_fingerprint() const {
+ const SHA1HashValue& ca_fingerprint() const {
return ca_fingerprint_;
}
@@ -425,11 +425,11 @@
// Calculates the SHA-1 fingerprint of the certificate. Returns an empty
// (all zero) fingerprint on failure.
- static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
+ static SHA1HashValue CalculateFingerprint(OSCertHandle cert_handle);
// Calculates the SHA-1 fingerprint of the intermediate CA certificates.
// Returns an empty (all zero) fingerprint on failure.
- static SHA1Fingerprint CalculateCAFingerprint(
+ static SHA1HashValue CalculateCAFingerprint(
const OSCertHandles& intermediates);
private:
@@ -495,10 +495,10 @@
base::Time valid_expiry_;
// The fingerprint of this certificate.
- SHA1Fingerprint fingerprint_;
+ SHA1HashValue fingerprint_;
// The fingerprint of the intermediate CA certificates.
- SHA1Fingerprint ca_fingerprint_;
+ SHA1HashValue ca_fingerprint_;
// The serial number of this certificate, DER encoded.
std::string serial_number_;

Powered by Google App Engine
This is Rietveld 408576698