proposal: Remove MODP_NONE from IKE proposals parsed from strings
This commit is contained in:
parent
aae9510148
commit
f5e8bc18fd
|
@ -453,6 +453,16 @@ static void check_proposal(private_proposal_t *this)
|
|||
}
|
||||
}
|
||||
e->destroy(e);
|
||||
/* remove MODP_NONE from IKE proposal */
|
||||
e = array_create_enumerator(this->transforms);
|
||||
while (e->enumerate(e, &entry))
|
||||
{
|
||||
if (entry->type == DIFFIE_HELLMAN_GROUP && !entry->alg)
|
||||
{
|
||||
array_remove_at(this->transforms, e);
|
||||
}
|
||||
}
|
||||
e->destroy(e);
|
||||
}
|
||||
|
||||
if (this->protocol == PROTO_ESP)
|
||||
|
|
Loading…
Reference in New Issue