]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Setting Mode Cfg identifier for CFG_ACK messages.
authorClavister OpenSource <opensource@clavister.com>
Wed, 28 Dec 2011 23:06:12 +0000 (00:06 +0100)
committerClavister OpenSource <opensource@clavister.com>
Tue, 20 Mar 2012 16:31:32 +0000 (17:31 +0100)
src/libcharon/sa/ikev1/tasks/xauth.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index f552993..20d6d8a
@@ -64,6 +64,11 @@ struct private_xauth_t {
         */
        cp_payload_t *cp;
 
+       /**
+        * received identifier
+        */
+       u_int16_t identifier;
+
        /**
         * status of Xauth exchange
         */
@@ -197,6 +202,7 @@ METHOD(task_t, build_r_ack, status_t,
        cp_payload_t *cp;
 
        cp = cp_payload_create_type(CONFIGURATION_V1, CFG_ACK);
+       cp->set_identifier(cp, this->identifier);
        cp->add_attribute(cp,
                        configuration_attribute_create_chunk(
                                        CONFIGURATION_ATTRIBUTE_V1, XAUTH_STATUS, chunk_empty));
@@ -270,6 +276,7 @@ METHOD(task_t, process_r, status_t,
                                 this->xauth->get_identity(this->xauth));
                }
        }
+       this->identifier = cp->get_identifier(cp);
        this->public.task.build = _build_r_ack;
        return NEED_MORE;
 }