diff options
Diffstat (limited to 'net/cert/x509_certificate.h')
-rw-r--r-- | net/cert/x509_certificate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/cert/x509_certificate.h b/net/cert/x509_certificate.h index 28961ee..ef55243 100644 --- a/net/cert/x509_certificate.h +++ b/net/cert/x509_certificate.h @@ -321,6 +321,12 @@ class NET_EXPORT X509Certificate static bool GetDEREncoded(OSCertHandle cert_handle, std::string* der_encoded); + // Returns the PEM encoded data from a DER encoded certificate. If the return + // value is true, then the PEM encoded certificate is written to + // |pem_encoded|. + static bool GetPEMEncodedFromDER(const std::string& der_encoded, + std::string* pem_encoded); + // Returns the PEM encoded data from an OSCertHandle. If the return value is // true, then the PEM encoded certificate is written to |pem_encoded|. static bool GetPEMEncoded(OSCertHandle cert_handle, |