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

Unified Diff: net/cert/x509_certificate.h

Issue 627573002: Enable passing cast channel certificate authority keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review changes. Created 6 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
« extensions/extensions.gyp ('K') | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_certificate.h
diff --git a/net/cert/x509_certificate.h b/net/cert/x509_certificate.h
index 97906ed0461f02c4d8705e2e3db8109484f21f1b..97711add0aa152463c672fbc8943064fa74f4c83 100644
--- a/net/cert/x509_certificate.h
+++ b/net/cert/x509_certificate.h
@@ -217,6 +217,12 @@ class NET_EXPORT X509Certificate
// The fingerprint of this certificate.
const SHA1HashValue& fingerprint() const { return fingerprint_; }
+ // The SHA-256 fingerprint of this certificate.
+ const SHA256HashValue fingerprint256() const {
+ net::X509Certificate::OSCertHandles intermediate;
+ return CalculateChainFingerprint256(os_cert_handle(), intermediate);
+ }
Ryan Sleevi 2014/10/17 19:53:21 STYLE: Don't inline this. It violates the trivial
vadimgo 2014/10/20 23:35:28 Moved from incline to code file and contacted Eran
+
// The fingerprint of the intermediate CA certificates.
const SHA1HashValue& ca_fingerprint() const {
return ca_fingerprint_;
« extensions/extensions.gyp ('K') | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698