diff options
Diffstat (limited to 'net/base/x509_certificate.h')
-rw-r--r-- | net/base/x509_certificate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h index 645454e..763084b 100644 --- a/net/base/x509_certificate.h +++ b/net/base/x509_certificate.h @@ -110,6 +110,10 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { // X509Certificate will properly dispose of |cert_handle| for you. static X509Certificate* CreateFromHandle(OSCertHandle cert_handle); + // Create an X509Certificate from the BER-encoded representation. + // Returns NULL on failure. + static X509Certificate* CreateFromBytes(const char* data, int length); + // Create an X509Certificate from the representation stored in the given // pickle. The data for this object is found relative to the given // pickle_iter, which should be passed to the pickle's various Read* methods. |