aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/queues
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-12-12 12:52:59 +0000
committerMartin Willi <martin@strongswan.org>2005-12-12 12:52:59 +0000
commit6db4e80b569137103b5003b9585e32c12af1a694 (patch)
tree7b640e5aa7bf9895ab3efc50be6e363158783b48 /Source/charon/queues
parent7fa8decb78f5062a124fd0d37ba51360100f9bfa (diff)
downloadstrongswan-6db4e80b569137103b5003b9585e32c12af1a694.tar.bz2
strongswan-6db4e80b569137103b5003b9585e32c12af1a694.tar.xz
- fixed some BAD bugs
- clean localhost-testcases for bad_dh, shared and rsa
Diffstat (limited to 'Source/charon/queues')
-rw-r--r--Source/charon/queues/jobs/delete_established_ike_sa_job.c5
-rw-r--r--Source/charon/queues/jobs/delete_half_open_ike_sa_job.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/Source/charon/queues/jobs/delete_established_ike_sa_job.c b/Source/charon/queues/jobs/delete_established_ike_sa_job.c
index 809980550..595bdd11b 100644
--- a/Source/charon/queues/jobs/delete_established_ike_sa_job.c
+++ b/Source/charon/queues/jobs/delete_established_ike_sa_job.c
@@ -61,9 +61,8 @@ static ike_sa_id_t *get_ike_sa_id(private_delete_established_ike_sa_job_t *this)
/**
* Implementation of job_t.destroy.
*/
-static void destroy(job_t *job)
+static void destroy(private_delete_established_ike_sa_job_t *this)
{
- private_delete_established_ike_sa_job_t *this = (private_delete_established_ike_sa_job_t *) job;
this->ike_sa_id->destroy(this->ike_sa_id);
allocator_free(this);
}
@@ -79,7 +78,7 @@ delete_established_ike_sa_job_t *delete_established_ike_sa_job_create(ike_sa_id_
this->public.job_interface.get_type = (job_type_t (*) (job_t *)) get_type;
/* same as destroy */
this->public.job_interface.destroy_all = (void (*) (job_t *)) destroy;
- this->public.job_interface.destroy = destroy;
+ this->public.job_interface.destroy = (void (*)(job_t*)) destroy;
/* public functions */
this->public.get_ike_sa_id = (ike_sa_id_t * (*)(delete_established_ike_sa_job_t *)) get_ike_sa_id;
diff --git a/Source/charon/queues/jobs/delete_half_open_ike_sa_job.c b/Source/charon/queues/jobs/delete_half_open_ike_sa_job.c
index d37cb98c4..47354d6be 100644
--- a/Source/charon/queues/jobs/delete_half_open_ike_sa_job.c
+++ b/Source/charon/queues/jobs/delete_half_open_ike_sa_job.c
@@ -61,9 +61,8 @@ static ike_sa_id_t *get_ike_sa_id(private_delete_half_open_ike_sa_job_t *this)
/**
* Implements job_t.destroy.
*/
-static void destroy(job_t *job)
+static void destroy(private_delete_half_open_ike_sa_job_t *this)
{
- private_delete_half_open_ike_sa_job_t *this = (private_delete_half_open_ike_sa_job_t *) job;
this->ike_sa_id->destroy(this->ike_sa_id);
allocator_free(this);
}
@@ -79,7 +78,7 @@ delete_half_open_ike_sa_job_t *delete_half_open_ike_sa_job_create(ike_sa_id_t *i
this->public.job_interface.get_type = (job_type_t (*) (job_t *)) get_type;
/* same as destroy */
this->public.job_interface.destroy_all = (void (*) (job_t *)) destroy;
- this->public.job_interface.destroy = destroy;
+ this->public.job_interface.destroy = (void (*)(job_t *)) destroy;;
/* public functions */
this->public.get_ike_sa_id = (ike_sa_id_t * (*)(delete_half_open_ike_sa_job_t *)) get_ike_sa_id;