From: Tobias Brunner Date: Thu, 5 Sep 2019 15:23:57 +0000 (+0200) Subject: quick-mode: Promote selected DH group instead of stripping all others X-Git-Tag: 5.8.2dr2~19^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3187293e3ddf2f457614f62a9d51f27e7764bb48;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c index edd179409a..00c9edd711 100644 --- a/src/libcharon/sa/ikev1/tasks/quick_mode.c +++ b/src/libcharon/sa/ikev1/tasks/quick_mode.c @@ -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); }