quick-mode: Promote selected DH group instead of stripping all others

Since only the first DH group is encoded for IKEv1 this should have the
same effect as removing all other groups.
This commit is contained in:
Tobias Brunner 2019-09-05 17:23:57 +02:00
parent c9599d4101
commit 3187293e3d

View File

@ -802,7 +802,7 @@ static linked_list_t *get_proposals(private_quick_mode_t *this,
proposal->destroy(proposal);
continue;
}
proposal->strip_dh(proposal, group);
proposal->promote_dh_group(proposal, group);
}
proposal->set_spi(proposal, this->spi_i);
}