Index: net/base/x509_certificate.h |
=================================================================== |
--- net/base/x509_certificate.h (revision 48533) |
+++ net/base/x509_certificate.h (working copy) |
@@ -210,7 +210,17 @@ |
// 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>; |
FRIEND_TEST(X509CertificateTest, Cache); |
@@ -254,17 +264,6 @@ |
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); |