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

Unified Diff: net/cert/x509_certificate.h

Issue 634033002: Check whether or not a certificate is self-signed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | net/cert/x509_certificate_ios.cc » ('j') | net/cert/x509_certificate_ios.cc » ('J')
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..7b4ecbb03109ea8df0ea15be5d78876ae25c83db 100644
--- a/net/cert/x509_certificate.h
+++ b/net/cert/x509_certificate.h
@@ -421,6 +421,9 @@ class NET_EXPORT X509Certificate
OSCertHandle leaf,
const OSCertHandles& intermediates);
+ // Returns true if the certificate is self-signed.
+ static bool IsSelfSigned(OSCertHandle cert_handle);
+
private:
friend class base::RefCountedThreadSafe<X509Certificate>;
friend class TestRootCerts; // For unit tests
« no previous file with comments | « no previous file | net/cert/x509_certificate_ios.cc » ('j') | net/cert/x509_certificate_ios.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698