| Index: net/cert/x509_certificate_win.cc
|
| diff --git a/net/cert/x509_certificate_win.cc b/net/cert/x509_certificate_win.cc
|
| index ab92b6f2a628fcc10185274291d2f9c353ae346f..8a5ddcf8e0ca4b785060541906b4c332f5985dc9 100644
|
| --- a/net/cert/x509_certificate_win.cc
|
| +++ b/net/cert/x509_certificate_win.cc
|
| @@ -453,4 +453,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,
|
| + cert_handle,
|
| + CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT,
|
| + cert_handle,
|
| + 0,
|
| + NULL);
|
| +}
|
| +
|
| } // namespace net
|
|
|