added set_other_ca() and get_other_ca()
This commit is contained in:
@@ -138,6 +138,11 @@ struct private_ike_sa_t {
|
||||
*/
|
||||
identification_t *other_id;
|
||||
|
||||
/**
|
||||
* CA that issued the certificate of other
|
||||
*/
|
||||
ca_info_t *other_ca;
|
||||
|
||||
/**
|
||||
* Linked List containing the child sa's of the current IKE_SA.
|
||||
*/
|
||||
@@ -1168,6 +1173,22 @@ static void set_other_id(private_ike_sa_t *this, identification_t *other)
|
||||
this->other_id = other;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of ike_sa_t.get_other_ca.
|
||||
*/
|
||||
static ca_info_t* get_other_ca(private_ike_sa_t *this)
|
||||
{
|
||||
return this->other_ca;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of ike_sa_t.set_other_ca.
|
||||
*/
|
||||
static void set_other_ca(private_ike_sa_t *this, ca_info_t *other_ca)
|
||||
{
|
||||
this->other_ca = other_ca;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of ike_sa_t.set_virtual_ip
|
||||
*/
|
||||
@@ -1887,6 +1908,8 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id)
|
||||
this->public.set_my_id = (void (*)(ike_sa_t*,identification_t*)) set_my_id;
|
||||
this->public.get_other_id = (identification_t* (*)(ike_sa_t*)) get_other_id;
|
||||
this->public.set_other_id = (void (*)(ike_sa_t*,identification_t*)) set_other_id;
|
||||
this->public.get_other_ca = (ca_info_t* (*)(ike_sa_t*)) get_other_ca;
|
||||
this->public.set_other_ca = (void (*)(ike_sa_t*,ca_info_t*)) set_other_ca;
|
||||
this->public.retransmit = (status_t (*)(ike_sa_t *, u_int32_t)) retransmit;
|
||||
this->public.delete = (status_t (*)(ike_sa_t*))delete_;
|
||||
this->public.destroy = (void (*)(ike_sa_t*))destroy;
|
||||
@@ -1922,6 +1945,7 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id)
|
||||
this->other_host = host_create_any(AF_INET);
|
||||
this->my_id = identification_create_from_encoding(ID_ANY, chunk_empty);
|
||||
this->other_id = identification_create_from_encoding(ID_ANY, chunk_empty);
|
||||
this->other_ca = NULL;
|
||||
this->crypter_in = NULL;
|
||||
this->crypter_out = NULL;
|
||||
this->signer_in = NULL;
|
||||
|
||||
Reference in New Issue
Block a user