attribute-provider: Pass full IKE_SA to provider backends
This commit is contained in:
@@ -122,11 +122,14 @@ static host_t *find_addr(private_vici_attribute_t *this, linked_list_t *pools,
|
||||
}
|
||||
|
||||
METHOD(attribute_provider_t, acquire_address, host_t*,
|
||||
private_vici_attribute_t *this, linked_list_t *pools, identification_t *id,
|
||||
private_vici_attribute_t *this, linked_list_t *pools, ike_sa_t *ike_sa,
|
||||
host_t *requested)
|
||||
{
|
||||
identification_t *id;
|
||||
host_t *addr;
|
||||
|
||||
id = ike_sa->get_other_eap_id(ike_sa);
|
||||
|
||||
this->lock->read_lock(this->lock);
|
||||
|
||||
addr = find_addr(this, pools, id, requested, MEM_POOL_EXISTING);
|
||||
@@ -146,13 +149,16 @@ METHOD(attribute_provider_t, acquire_address, host_t*,
|
||||
|
||||
METHOD(attribute_provider_t, release_address, bool,
|
||||
private_vici_attribute_t *this, linked_list_t *pools, host_t *address,
|
||||
identification_t *id)
|
||||
ike_sa_t *ike_sa)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
identification_t *id;
|
||||
bool found = FALSE;
|
||||
pool_t *pool;
|
||||
char *name;
|
||||
|
||||
id = ike_sa->get_other_eap_id(ike_sa);
|
||||
|
||||
this->lock->read_lock(this->lock);
|
||||
|
||||
enumerator = pools->create_enumerator(pools);
|
||||
@@ -259,7 +265,7 @@ static bool have_vips_from_pool(mem_pool_t *pool, linked_list_t *vips)
|
||||
|
||||
METHOD(attribute_provider_t, create_attribute_enumerator, enumerator_t*,
|
||||
private_vici_attribute_t *this, linked_list_t *pools,
|
||||
identification_t *id, linked_list_t *vips)
|
||||
ike_sa_t *ike_sa, linked_list_t *vips)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
nested_data_t *data;
|
||||
|
||||
Reference in New Issue
Block a user