Index: crypto/rsa_private_key.h |
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h |
index cb190677b166641443229012d5fa7379eb384806..221e341a6fe8da40b9753dc58df91598a53fd61a 100644 |
--- a/crypto/rsa_private_key.h |
+++ b/crypto/rsa_private_key.h |
@@ -216,6 +216,12 @@ class CRYPTO_EXPORT RSAPrivateKey { |
static RSAPrivateKey* FindFromPublicKeyInfoInSlot( |
const std::vector<uint8>& input, |
PK11SlotInfo* slot); |
+#elif defined(USE_OPENSSL) |
+ // Create a new instance from an existing EVP_PKEY, taking a |
+ // reference to it. |key| must be an RSA key. Returns NULL on |
+ // failure. |
+ static RSAPrivateKey* CreateFromKey(EVP_PKEY* key); |
+ |
#endif |
#if defined(USE_OPENSSL) |