Accept unencrypted Aggressive Mode messages.

Racoon does not encrypt the third message during Aggressive Mode.
This commit is contained in:
Tobias Brunner
2012-03-20 17:31:34 +01:00
parent c40963b457
commit bd8d1f1d9c
+2 -1
View File
@@ -1882,7 +1882,8 @@ static status_t decrypt_payloads(private_message_t *this, keymat_t *keymat)
encryption->destroy(encryption);
}
if (payload_is_known(type) && !was_encrypted &&
!is_connectivity_check(this, payload))
!is_connectivity_check(this, payload) &&
this->exchange_type != AGGRESSIVE)
{
rule = get_payload_rule(this, type);
if (!rule || rule->encrypted)