Index: net/base/x509_certificate.h |
=================================================================== |
--- net/base/x509_certificate.h (revision 113824) |
+++ net/base/x509_certificate.h (working copy) |
@@ -73,6 +73,15 @@ |
typedef std::vector<OSCertHandle> OSCertHandles; |
+ enum PublicKeyType { |
+ kPublicKeyTypeUnknown, |
+ kPublicKeyTypeRSA, |
+ kPublicKeyTypeDSA, |
+ kPublicKeyTypeECDSA, |
+ kPublicKeyTypeDH, |
+ kPublicKeyTypeECDH |
+ }; |
+ |
// Predicate functor used in maps when X509Certificate is used as the key. |
class NET_EXPORT LessThan { |
public: |
@@ -403,6 +412,11 @@ |
// the first element. |
bool GetPEMEncodedChain(std::vector<std::string>* pem_encoded) const; |
+ // Returns the length of the public key in bits. |
Ryan Sleevi
2011/12/13 05:45:35
nit: This comment doesn't really return anything.
|
+ static void GetPublicKeyInfo(OSCertHandle cert_handle, |
+ size_t* size_bits, |
+ PublicKeyType* type); |
+ |
// Returns the OSCertHandle of this object. Because of caching, this may |
// differ from the OSCertHandle originally supplied during initialization. |
// Note: On Windows, CryptoAPI may return unexpected results if this handle |