Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: crypto/ec_private_key.h

Issue 10700099: NSS Channel ID: don't check ECC support on every socket creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move/update the comment Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: crypto/ec_private_key.h
diff --git a/crypto/ec_private_key.h b/crypto/ec_private_key.h
index 44f754b038c9e30d45dec3545b4779f4c1759b1a..0851fe475faea414c28d75950b36ebba5ca3b0f7 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
namespace crypto {
@@ -80,6 +81,10 @@ class CRYPTO_EXPORT ECPrivateKey {
bool sensitive,
SECKEYPrivateKey** key,
SECKEYPublicKey** public_key);
+
+ // Returns a reference to the NSS slot that will be used to generate / store
+ // the private key.
+ static PK11SlotInfo* GetKeySlot();
#endif
#if defined(USE_OPENSSL)

Powered by Google App Engine
This is Rietveld 408576698