Setting Mode Cfg identifier for CFG_ACK messages.
This commit is contained in:
Regular → Executable
+7
@@ -64,6 +64,11 @@ struct private_xauth_t {
|
|||||||
*/
|
*/
|
||||||
cp_payload_t *cp;
|
cp_payload_t *cp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* received identifier
|
||||||
|
*/
|
||||||
|
u_int16_t identifier;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* status of Xauth exchange
|
* status of Xauth exchange
|
||||||
*/
|
*/
|
||||||
@@ -197,6 +202,7 @@ METHOD(task_t, build_r_ack, status_t,
|
|||||||
cp_payload_t *cp;
|
cp_payload_t *cp;
|
||||||
|
|
||||||
cp = cp_payload_create_type(CONFIGURATION_V1, CFG_ACK);
|
cp = cp_payload_create_type(CONFIGURATION_V1, CFG_ACK);
|
||||||
|
cp->set_identifier(cp, this->identifier);
|
||||||
cp->add_attribute(cp,
|
cp->add_attribute(cp,
|
||||||
configuration_attribute_create_chunk(
|
configuration_attribute_create_chunk(
|
||||||
CONFIGURATION_ATTRIBUTE_V1, XAUTH_STATUS, chunk_empty));
|
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->xauth->get_identity(this->xauth));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->identifier = cp->get_identifier(cp);
|
||||||
this->public.task.build = _build_r_ack;
|
this->public.task.build = _build_r_ack;
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user