| Index: net/base/x509_certificate_win.cc
|
| diff --git a/net/base/x509_certificate_win.cc b/net/base/x509_certificate_win.cc
|
| index 041fe4d522aa7d44ab4f43df3753c11dbbea08d9..3dda3eaa84c55a2241f07f1287211d5a26a20ede 100644
|
| --- a/net/base/x509_certificate_win.cc
|
| +++ b/net/base/x509_certificate_win.cc
|
| @@ -909,12 +909,13 @@ int X509Certificate::VerifyInternal(const std::string& hostname,
|
| return OK;
|
| }
|
|
|
| -bool X509Certificate::GetDEREncoded(std::string* encoded) {
|
| - if (!cert_handle_->pbCertEncoded || !cert_handle_->cbCertEncoded)
|
| +// static
|
| +bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle,
|
| + 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);
|
| + encoded->assign(reinterpret_cast<char*>(cert_handle->pbCertEncoded),
|
| + cert_handle->cbCertEncoded);
|
| return true;
|
| }
|
|
|
|
|