| Index: crypto/rsa_private_key_nss.cc
|
| diff --git a/crypto/rsa_private_key_nss.cc b/crypto/rsa_private_key_nss.cc
|
| index a89454e378442f92469ea38f99780f2bd3349a0e..357443205409adcfeb5a114e204d2d38bf50567e 100644
|
| --- a/crypto/rsa_private_key_nss.cc
|
| +++ b/crypto/rsa_private_key_nss.cc
|
| @@ -206,7 +206,8 @@ RSAPrivateKey* RSAPrivateKey::CreateWithParams(uint16 num_bits,
|
|
|
| scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey);
|
|
|
| - ScopedPK11Slot slot(GetPrivateNSSKeySlot());
|
| + ScopedPK11Slot slot(permanent ? GetPrivateNSSKeySlot() :
|
| + PK11_GetInternalSlot());
|
| if (!slot.get())
|
| return NULL;
|
|
|
| @@ -236,7 +237,8 @@ RSAPrivateKey* RSAPrivateKey::CreateFromPrivateKeyInfoWithParams(
|
|
|
| scoped_ptr<RSAPrivateKey> result(new RSAPrivateKey);
|
|
|
| - ScopedPK11Slot slot(GetPrivateNSSKeySlot());
|
| + ScopedPK11Slot slot(permanent ? GetPrivateNSSKeySlot() :
|
| + PK11_GetInternalSlot());
|
| if (!slot.get())
|
| return NULL;
|
|
|
|
|