Index: crypto/ec_private_key.h |
diff --git a/crypto/ec_private_key.h b/crypto/ec_private_key.h |
index 44f754b038c9e30d45dec3545b4779f4c1759b1a..371b069d63c5fd1b19202653b26f16ec609edcbd 100644 |
--- a/crypto/ec_private_key.h |
+++ b/crypto/ec_private_key.h |
@@ -21,6 +21,7 @@ typedef struct evp_pkey_st EVP_PKEY; |
typedef struct CERTSubjectPublicKeyInfoStr CERTSubjectPublicKeyInfo; |
typedef struct SECKEYPrivateKeyStr SECKEYPrivateKey; |
typedef struct SECKEYPublicKeyStr SECKEYPublicKey; |
+typedef struct PK11SlotInfoStr PK11SlotInfo; |
#endif |
Ryan Sleevi
2012/07/04 03:00:04
Still needed?
|
namespace crypto { |
@@ -34,6 +35,9 @@ class CRYPTO_EXPORT ECPrivateKey { |
public: |
~ECPrivateKey(); |
+ // Returns whether the system supports elliptic curve cryptography. |
+ static bool IsSupported(); |
+ |
// Creates a new random instance. Can return NULL if initialization fails. |
// The created key will use the NIST P-256 curve. |
// TODO(mattm): Add a curve parameter. |