mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-17 21:34:10 -05:00
Merge pull request #2004 from csoler/v0.6-BugFixing
fixed long-term bug due to sending an empty list of dest keys for GXSS…
This commit is contained in:
commit
e0e88caf05
@ -651,6 +651,9 @@ bool GxsSecurity::encrypt(uint8_t *& out, uint32_t &outlen, const uint8_t *in, u
|
|||||||
|
|
||||||
try
|
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)
|
for(uint32_t i=0;i<keys.size();++i)
|
||||||
{
|
{
|
||||||
RSA *tmpkey = ::extractPublicKey(keys[i]) ;
|
RSA *tmpkey = ::extractPublicKey(keys[i]) ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user