do not attempt to encrypt payloads without crypter or signer (allows to override message rules)
This commit is contained in:
@@ -681,6 +681,13 @@ static status_t encrypt_payloads (private_message_t *this,crypter_t *crypter, si
|
|||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!crypter || !signer)
|
||||||
|
{
|
||||||
|
DBG2(DBG_ENC, "no crypter or signer specified, do not encrypt message");
|
||||||
|
/* message contains no content to encrypt */
|
||||||
|
return SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
DBG2(DBG_ENC, "copy all payloads to a temporary list");
|
DBG2(DBG_ENC, "copy all payloads to a temporary list");
|
||||||
all_payloads = linked_list_create();
|
all_payloads = linked_list_create();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user