Index: net/cert/x509_certificate_win.cc |
diff --git a/net/cert/x509_certificate_win.cc b/net/cert/x509_certificate_win.cc |
index df263d8fa90838d9af5fb7db8e72b0eed0ee8f30..c7daddf400c6e6c5da49853992e4076fa5717ed3 100644 |
--- a/net/cert/x509_certificate_win.cc |
+++ b/net/cert/x509_certificate_win.cc |
@@ -472,4 +472,17 @@ bool X509Certificate::IsIssuedByEncoded( |
return false; |
} |
+// static |
+bool X509Certificate::IsSelfSigned(OSCertHandle cert_handle) { |
+ return CryptVerifyCertificateSignatureEx( |
+ NULL, |
+ X509_ASN_ENCODING, |
+ CRYPT_VERIFY_CERT_SIGN_SUBJECT_CERT, |
+ reinterpret_cast<void*>(<const_cast<PCERT_CONTEXT>(cert_handle)), |
Ryan Sleevi
2014/10/21 22:27:43
stray < it seems (between void*(<const )
palmer
2014/10/21 23:02:13
Done.
|
+ CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT, |
+ cert_handle, |
+ 0, |
+ NULL); |
+} |
+ |
} // namespace net |