| Index: net/base/x509_certificate_nss.cc
|
| diff --git a/net/base/x509_certificate_nss.cc b/net/base/x509_certificate_nss.cc
|
| index 2962cb54c840678b5c031086f62baf7e43e8afa2..05e736c9598c7ce9f27ce3d9d6ed1b8b7d93d16d 100644
|
| --- a/net/base/x509_certificate_nss.cc
|
| +++ b/net/base/x509_certificate_nss.cc
|
| @@ -829,6 +829,15 @@ bool X509Certificate::VerifyEV() const {
|
| return true;
|
| }
|
|
|
| +bool X509Certificate::GetDEREncoded(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);
|
| + return true;
|
| +}
|
| +
|
| // static
|
| bool X509Certificate::IsSameOSCert(X509Certificate::OSCertHandle a,
|
| X509Certificate::OSCertHandle b) {
|
|
|