From 099c0b12b60223416433d96d63017815d1983317 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 20 Apr 2015 14:59:08 +0200 Subject: [PATCH] ike-init: Enable redirection extension if client sends REDIRECT_SUPPORTED notify --- src/libcharon/sa/ikev2/tasks/ike_init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcharon/sa/ikev2/tasks/ike_init.c b/src/libcharon/sa/ikev2/tasks/ike_init.c index 1ff643d62..8c628646e 100644 --- a/src/libcharon/sa/ikev2/tasks/ike_init.c +++ b/src/libcharon/sa/ikev2/tasks/ike_init.c @@ -391,6 +391,10 @@ static void process_payloads(private_ike_init_t *this, message_t *message) handle_supported_hash_algorithms(this, notify); } break; + case REDIRECT_SUPPORTED: + this->ike_sa->enable_extension(this->ike_sa, + EXT_IKE_REDIRECTION); + break; default: /* other notifies are handled elsewhere */ break;