From 3187293e3ddf2f457614f62a9d51f27e7764bb48 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 5 Sep 2019 17:23:57 +0200 Subject: [PATCH] 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. --- src/libcharon/sa/ikev1/tasks/quick_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c index edd179409..00c9edd71 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); }