mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed long-term bug due to sending an empty list of destkeys for GXSSecurity to encrypt an item
This commit is contained in:
parent
31e6e02a91
commit
1dbc0c1fcf
@ -651,6 +651,9 @@ bool GxsSecurity::encrypt(uint8_t *& out, uint32_t &outlen, const uint8_t *in, u
|
||||
|
||||
try
|
||||
{
|
||||
if(keys.empty())
|
||||
throw std::runtime_error("EVP_SealInit will not be called with 0 keys. GxsSecurity::encrypt() was called with an empty set of destination keys!") ;
|
||||
|
||||
for(uint32_t i=0;i<keys.size();++i)
|
||||
{
|
||||
RSA *tmpkey = ::extractPublicKey(keys[i]) ;
|
||||
|
Loading…
Reference in New Issue
Block a user