summaryrefslogtreecommitdiff
path: root/src/charon/processing/jobs/initiate_mediation_job.c
diff options
context:
space:
mode:
authorRene Mayrhofer <rene@mayrhofer.eu.org>2008-10-29 11:11:01 +0000
committerRene Mayrhofer <rene@mayrhofer.eu.org>2008-10-29 11:11:01 +0000
commit8b80ab5a6950ce6515f477624794defd7531642a (patch)
treeaa8303f3806c5615fbeafc4dc82febe3cd7c24dc /src/charon/processing/jobs/initiate_mediation_job.c
parentdb67c87db3c9089ea8d2e14f617bf3d9e2af261f (diff)
downloadvyos-strongswan-8b80ab5a6950ce6515f477624794defd7531642a.tar.gz
vyos-strongswan-8b80ab5a6950ce6515f477624794defd7531642a.zip
[svn-upgrade] Integrating new upstream version, strongswan (4.2.8)
Diffstat (limited to 'src/charon/processing/jobs/initiate_mediation_job.c')
-rw-r--r--src/charon/processing/jobs/initiate_mediation_job.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/charon/processing/jobs/initiate_mediation_job.c b/src/charon/processing/jobs/initiate_mediation_job.c
index de97daafa..ee9644045 100644
--- a/src/charon/processing/jobs/initiate_mediation_job.c
+++ b/src/charon/processing/jobs/initiate_mediation_job.c
@@ -12,7 +12,7 @@
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
- * $Id: initiate_mediation_job.c 3792 2008-04-10 12:51:04Z tobias $
+ * $Id: initiate_mediation_job.c 4192 2008-07-18 15:51:40Z martin $
*/
#include "initiate_mediation_job.h"
@@ -56,10 +56,11 @@ static void destroy(private_initiate_mediation_job_t *this)
/**
* Callback to handle initiation of mediation connection
*/
-static bool initiate_callback(private_initiate_mediation_job_t *this, signal_t signal, level_t level,
- ike_sa_t *ike_sa, char *format, va_list args)
+static bool initiate_callback(private_initiate_mediation_job_t *this,
+ signal_t signal, level_t level, ike_sa_t *ike_sa,
+ void *data, char *format, va_list args)
{
- if (signal == CHILD_UP_SUCCESS)
+ if (signal == CHD_UP_SUCCESS)
{
/* mediation connection is up */
this->mediation_sa_id = ike_sa->get_id(ike_sa);
@@ -119,7 +120,7 @@ static void initiate(private_initiate_mediation_job_t *this)
mediation_cfg->destroy(mediation_cfg);
mediated_cfg->destroy(mediated_cfg);
charon->bus->set_sa(charon->bus, mediated_sa);
- SIG(IKE_UP_FAILED, "mediation failed");
+ SIG_IKE(UP_FAILED, "mediation failed");
destroy(this);
return;
}
@@ -138,7 +139,7 @@ static void initiate(private_initiate_mediation_job_t *this)
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager, mediation_sa);
charon->bus->set_sa(charon->bus, mediated_sa);
- SIG(IKE_UP_FAILED, "mediation failed");
+ SIG_IKE(UP_FAILED, "mediation failed");
destroy(this);
return;
}
@@ -179,7 +180,7 @@ static void reinitiate(private_initiate_mediation_job_t *this)
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager, mediation_sa);
charon->bus->set_sa(charon->bus, mediated_sa);
- SIG(IKE_UP_FAILED, "mediation failed");
+ SIG_IKE(UP_FAILED, "mediation failed");
destroy(this);
return;
}