current state

This commit is contained in:
Jan Hutter
2005-11-21 16:41:24 +00:00
parent f0d14d2c56
commit 8323a9c120
17 changed files with 1605 additions and 1137 deletions
+9 -1
View File
@@ -35,6 +35,11 @@ struct private_ike_auth_requested_s {
*/
ike_auth_requested_t public;
/**
* Assigned IKE_SA
*/
protected_ike_sa_t *ike_sa;
};
/**
@@ -66,7 +71,7 @@ static status_t destroy(private_ike_auth_requested_t *this)
/*
* Described in header.
*/
ike_auth_requested_t *ike_auth_requested_create()
ike_auth_requested_t *ike_auth_requested_create(protected_ike_sa_t *ike_sa)
{
private_ike_auth_requested_t *this = allocator_alloc_thing(private_ike_auth_requested_t);
@@ -80,5 +85,8 @@ ike_auth_requested_t *ike_auth_requested_create()
this->public.state_interface.get_state = (ike_sa_state_t (*) (state_t *)) get_state;
this->public.state_interface.destroy = (status_t (*) (state_t *)) destroy;
/* private data */
this->ike_sa = ike_sa;
return &(this->public);
}