| Index: net/base/x509_certificate_win.cc
|
| diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc
|
| index 509c6c921b2863b157f0ff5e294cd69a63716430..de3a9260769be9346a9b3353fb4183d0715d3bdc 100644
|
| --- a/net/base/x509_certificate_win.cc
|
| +++ b/net/base/x509_certificate_win.cc
|
| @@ -778,6 +778,15 @@ int X509Certificate::Verify(const std::string& hostname,
|
| return OK;
|
| }
|
|
|
| +bool X509Certificate::GetDEREncoded(std::string* encoded) {
|
| + if (!cert_handle_->pbCertEncoded || !cert_handle_->cbCertEncoded)
|
| + return false;
|
| + encoded->clear();
|
| + encoded->append(reinterpret_cast<char*>(cert_handle_->pbCertEncoded),
|
| + cert_handle_->cbCertEncoded);
|
| + return true;
|
| +}
|
| +
|
| // Returns true if the certificate is an extended-validation certificate.
|
| //
|
| // This function checks the certificatePolicies extensions of the
|
|
|