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

Unified Diff: net/base/x509_certificate.h

Issue 8400075: Fix the "certificate is not yet valid" error for server certificates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 107789)
+++ net/base/x509_certificate.h (working copy)
@@ -210,6 +210,11 @@
// The fingerprint of this certificate.
const SHA1Fingerprint& fingerprint() const { return fingerprint_; }
+ // The fingerprint of this certificate and its intermediate CA certificates.
+ const SHA1Fingerprint& chain_fingerprint() const {
+ return chain_fingerprint_;
+ }
+
// Gets the DNS names in the certificate. Pursuant to RFC 2818, Section 3.1
// Server Identity, if the certificate has a subjectAltName extension of
// type dNSName, this method gets the DNS names in that extension.
@@ -365,6 +370,10 @@
// (all zero) fingerprint on failure.
static SHA1Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
+ // Calculates the SHA-1 fingerprint of the certificate and its intermediate
+ // CA certificates. Returns an empty (all zero) fingerprint on failure.
+ SHA1Fingerprint CalculateChainFingerprint() const;
wtc 2011/10/28 22:24:04 This method should be private. I list it here so
+
private:
friend class base::RefCountedThreadSafe<X509Certificate>;
friend class TestRootCerts; // For unit tests
@@ -472,6 +481,9 @@
// The fingerprint of this certificate.
SHA1Fingerprint fingerprint_;
+ // The fingerprint of this certificate and its intermediate CA certificates.
+ SHA1Fingerprint chain_fingerprint_;
+
// The serial number of this certificate, DER encoded.
std::string serial_number_;

Powered by Google App Engine
This is Rietveld 408576698