diff options
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/x509_certificate.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h index 6bccdf3..5c80b2d 100644 --- a/net/base/x509_certificate.h +++ b/net/base/x509_certificate.h @@ -210,6 +210,16 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { // Returns true if two OSCertHandles refer to identical certificates. static bool IsSameOSCert(OSCertHandle a, OSCertHandle b); + // Creates an OS certificate handle from the BER-encoded representation. + // Returns NULL on failure. + static OSCertHandle CreateOSCertHandleFromBytes(const char* data, + int length); + + // Duplicates (or adds a reference to) an OS certificate handle. + static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle); + + // Frees (or releases a reference to) an OS certificate handle. + static void FreeOSCertHandle(OSCertHandle cert_handle); private: friend class base::RefCountedThreadSafe<X509Certificate>; @@ -254,17 +264,6 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> { bool VerifyEV() const; - // Creates an OS certificate handle from the BER-encoded representation. - // Returns NULL on failure. - static OSCertHandle CreateOSCertHandleFromBytes(const char* data, - int length); - - // Duplicates (or adds a reference to) an OS certificate handle. - static OSCertHandle DupOSCertHandle(OSCertHandle cert_handle); - - // Frees (or releases a reference to) an OS certificate handle. - static void FreeOSCertHandle(OSCertHandle cert_handle); - // Calculates the SHA-1 fingerprint of the certificate. Returns an empty // (all zero) fingerprint on failure. static Fingerprint CalculateFingerprint(OSCertHandle cert_handle); |