Index: net/cert/x509_certificate.h |
diff --git a/net/cert/x509_certificate.h b/net/cert/x509_certificate.h |
index 008de71f13e31fb638ea452e83ed94aae139ea48..5c64a443a9fac25af51a5d180c2f28c46f85f6cc 100644 |
--- a/net/cert/x509_certificate.h |
+++ b/net/cert/x509_certificate.h |
@@ -20,11 +20,10 @@ |
#if defined(OS_WIN) |
#include <windows.h> |
-#include <wincrypt.h> |
+#include "crypto/wincrypt_shim.h" |
#elif defined(OS_MACOSX) |
#include <CoreFoundation/CFArray.h> |
#include <Security/SecBase.h> |
- |
#elif defined(USE_OPENSSL_CERTS) |
// Forward declaration; real one in <x509.h> |
typedef struct x509_st X509; |
@@ -425,6 +424,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 |