ike-init: Enable redirection extension if client sends REDIRECT_SUPPORTED notify
authorTobias Brunner <tobias@strongswan.org>
Mon, 20 Apr 2015 12:59:08 +0000 (14:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Mar 2016 15:02:58 +0000 (16:02 +0100)
src/libcharon/sa/ikev2/tasks/ike_init.c

index 1ff643d..8c62864 100644 (file)
@@ -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;