diff options
author | Clavister OpenSource <opensource@clavister.com> | 2011-12-29 00:06:12 +0100 |
---|---|---|
committer | Clavister OpenSource <opensource@clavister.com> | 2012-03-20 17:31:32 +0100 |
commit | d71092ceed514b312b4bbd2a1b9e2300e256d1f7 (patch) | |
tree | fefe41910ff3366900e459bd882afbea24f5a1c0 /src/libcharon/sa/ikev1/tasks/xauth.c | |
parent | e32820f5935806bc2a06f90cfb77923de3a72323 (diff) | |
download | strongswan-d71092ceed514b312b4bbd2a1b9e2300e256d1f7.tar.bz2 strongswan-d71092ceed514b312b4bbd2a1b9e2300e256d1f7.tar.xz |
Setting Mode Cfg identifier for CFG_ACK messages.
Diffstat (limited to 'src/libcharon/sa/ikev1/tasks/xauth.c')
-rwxr-xr-x[-rw-r--r--] | src/libcharon/sa/ikev1/tasks/xauth.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcharon/sa/ikev1/tasks/xauth.c b/src/libcharon/sa/ikev1/tasks/xauth.c index f55299398..20d6d8a17 100644..100755 --- a/src/libcharon/sa/ikev1/tasks/xauth.c +++ b/src/libcharon/sa/ikev1/tasks/xauth.c @@ -65,6 +65,11 @@ struct private_xauth_t { cp_payload_t *cp; /** + * received identifier + */ + u_int16_t identifier; + + /** * status of Xauth exchange */ xauth_status_t status; @@ -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; } |