| Index: net/base/x509_certificate_nss.cc
|
| diff --git a/net/base/x509_certificate_nss.cc b/net/base/x509_certificate_nss.cc
|
| index 4a8a4e0f3c0a59390118695937c7eee6fcf47102..2cfd3f9d9ed7a20969ad088688416278d172254f 100644
|
| --- a/net/base/x509_certificate_nss.cc
|
| +++ b/net/base/x509_certificate_nss.cc
|
| @@ -902,12 +902,13 @@ bool X509Certificate::VerifyEV() const {
|
| return false;
|
| }
|
|
|
| -bool X509Certificate::GetDEREncoded(std::string* encoded) {
|
| - if (!cert_handle_->derCert.len)
|
| +// static
|
| +bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle,
|
| + std::string* encoded) {
|
| + if (!cert_handle->derCert.len)
|
| return false;
|
| - encoded->clear();
|
| - encoded->append(reinterpret_cast<char*>(cert_handle_->derCert.data),
|
| - cert_handle_->derCert.len);
|
| + encoded->assign(reinterpret_cast<char*>(cert_handle->derCert.data),
|
| + cert_handle->derCert.len);
|
| return true;
|
| }
|
|
|
|
|