From: Clavister OpenSource Date: Wed, 28 Dec 2011 23:06:12 +0000 (+0100) Subject: Setting Mode Cfg identifier for CFG_ACK messages. X-Git-Tag: 5.0.0~338^2~9^2~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d71092ceed514b312b4bbd2a1b9e2300e256d1f7;p=thirdparty%2Fstrongswan.git Setting Mode Cfg identifier for CFG_ACK messages. --- diff --git a/src/libcharon/sa/ikev1/tasks/xauth.c b/src/libcharon/sa/ikev1/tasks/xauth.c old mode 100644 new mode 100755 index f552993982..20d6d8a171 --- a/src/libcharon/sa/ikev1/tasks/xauth.c +++ b/src/libcharon/sa/ikev1/tasks/xauth.c @@ -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; }