| Index: net/base/x509_certificate_mac.cc
|
| diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc
|
| index 2187cd38a84ad7c7e6193aaae1268b61251591a4..933f75f5f49b04bdacca6d697a6c611abc0b38f4 100644
|
| --- a/net/base/x509_certificate_mac.cc
|
| +++ b/net/base/x509_certificate_mac.cc
|
| @@ -641,6 +641,17 @@ int X509Certificate::Verify(const std::string& hostname, int flags,
|
| return OK;
|
| }
|
|
|
| +bool X509Certificate::GetDEREncoded(std::string* encoded) {
|
| + encoded->clear();
|
| + CSSM_DATA der_data;
|
| + if(SecCertificateGetData(cert_handle_, &der_data) == noErr) {
|
| + encoded->append(reinterpret_cast<char*>(der_data.Data),
|
| + der_data.Length);
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| bool X509Certificate::VerifyEV() const {
|
| // We don't call this private method, but we do need to implement it because
|
| // it's defined in x509_certificate.h. We perform EV checking in the
|
|
|