diff options
author | Martin Willi <martin@strongswan.org> | 2008-12-05 09:40:50 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-12-05 09:40:50 +0000 |
commit | 876d5c63a31258a99afd5652deb5e4a2a13c3aea (patch) | |
tree | 2c556be6f55e88748fc8965ae11755ccd04add1e /src/charon/plugins/stroke/stroke_attribute.c | |
parent | c333bb46785698b3be17745eab75e050301e1e2c (diff) | |
download | strongswan-876d5c63a31258a99afd5652deb5e4a2a13c3aea.tar.bz2 strongswan-876d5c63a31258a99afd5652deb5e4a2a13c3aea.tar.xz |
pass identity to release_address(), allows providers to do a lookup by id
Diffstat (limited to 'src/charon/plugins/stroke/stroke_attribute.c')
-rw-r--r-- | src/charon/plugins/stroke/stroke_attribute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/plugins/stroke/stroke_attribute.c b/src/charon/plugins/stroke/stroke_attribute.c index 71b56bc8a..031218273 100644 --- a/src/charon/plugins/stroke/stroke_attribute.c +++ b/src/charon/plugins/stroke/stroke_attribute.c @@ -203,7 +203,7 @@ static host_t* acquire_address(private_stroke_attribute_t *this, * Implementation of attribute_provider_t.release_address */ static bool release_address(private_stroke_attribute_t *this, - char *name, host_t *address) + char *name, host_t *address, identification_t *id) { pool_t *pool; bool found = FALSE; @@ -327,7 +327,7 @@ stroke_attribute_t *stroke_attribute_create() private_stroke_attribute_t *this = malloc_thing(private_stroke_attribute_t); this->public.provider.acquire_address = (host_t*(*)(attribute_provider_t *this, char*, identification_t *,auth_info_t *, host_t *))acquire_address; - this->public.provider.release_address = (bool(*)(attribute_provider_t *this, char*,host_t *))release_address; + this->public.provider.release_address = (bool(*)(attribute_provider_t *this, char*,host_t *, identification_t*))release_address; this->public.add_pool = (void(*)(stroke_attribute_t*, stroke_msg_t *msg))add_pool; this->public.del_pool = (void(*)(stroke_attribute_t*, stroke_msg_t *msg))del_pool; this->public.destroy = (void(*)(stroke_attribute_t*))destroy; |