strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[strongswan.git]
/
Source
/
charon
/
sa
/
states
/
ike_auth_requested.c
diff --git
a/Source/charon/sa/states/ike_auth_requested.c
b/Source/charon/sa/states/ike_auth_requested.c
index
28ff3a0
..
316b0a2
100644
(file)
--- a/
Source/charon/sa/states/ike_auth_requested.c
+++ b/
Source/charon/sa/states/ike_auth_requested.c
@@
-1,7
+1,7
@@
/**
* @file ike_auth_requested.c
*
/**
* @file ike_auth_requested.c
*
- * @brief
State of an IKE_SA, which has requested an IKE_AUTH
.
+ * @brief
Implementation of ike_auth_requested_t
.
*
*/
*
*/
@@
-37,6
+37,15
@@
struct private_ike_auth_requested_t {
*/
ike_auth_requested_t public;
*/
ike_auth_requested_t public;
+ /**
+ * Sent nonce value
+ */
+ chunk_t sent_nonce;
+
+ /**
+ * Received nonce
+ */
+ chunk_t received_nonce;
/**
* Assigned IKE_SA
/**
* Assigned IKE_SA
@@
-65,13
+74,15
@@
static ike_sa_state_t get_state(private_ike_auth_requested_t *this)
*/
static void destroy(private_ike_auth_requested_t *this)
{
*/
static void destroy(private_ike_auth_requested_t *this)
{
+ allocator_free(this->sent_nonce.ptr);
+ allocator_free(this->received_nonce.ptr);
allocator_free(this);
}
/*
* Described in header.
*/
allocator_free(this);
}
/*
* Described in header.
*/
-ike_auth_requested_t *ike_auth_requested_create(protected_ike_sa_t *ike_sa)
+ike_auth_requested_t *ike_auth_requested_create(protected_ike_sa_t *ike_sa
, chunk_t sent_nonce, chunk_t received_nonce
)
{
private_ike_auth_requested_t *this = allocator_alloc_thing(private_ike_auth_requested_t);
{
private_ike_auth_requested_t *this = allocator_alloc_thing(private_ike_auth_requested_t);
@@
-82,6
+93,9
@@
ike_auth_requested_t *ike_auth_requested_create(protected_ike_sa_t *ike_sa)
/* private data */
this->ike_sa = ike_sa;
/* private data */
this->ike_sa = ike_sa;
+ this->sent_nonce = sent_nonce;
+ this->received_nonce = received_nonce;
+
return &(this->public);
}
return &(this->public);
}