]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/libcharon/processing/jobs/redirect_job.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / processing / jobs / redirect_job.h
1 /*
2 * Copyright (C) 2015 Tobias Brunner
3 *
4 * Copyright (C) secunet Security Networks AG
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 */
16
17 /**
18 * @defgroup redirect_job redirect_job
19 * @{ @ingroup cjobs
20 */
21
22 #ifndef REDIRECT_JOB_H_
23 #define REDIRECT_JOB_H_
24
25 typedef struct redirect_job_t redirect_job_t;
26
27 #include <library.h>
28 #include <sa/ike_sa_id.h>
29 #include <processing/jobs/job.h>
30
31 /**
32 * Job used to redirect an IKE_SA.
33 */
34 struct redirect_job_t {
35
36 /**
37 * The job_t interface.
38 */
39 job_t job_interface;
40 };
41
42 /**
43 * Creates a job to redirect an IKE_SA.
44 *
45 * @param ike_sa_id id of the IKE_SA to redirect (cloned)
46 * @param gateway gateway identity (IP or FQDN) of target (cloned)
47 * @return created redirect_job_t object
48 */
49 redirect_job_t *redirect_job_create(ike_sa_id_t *ike_sa_id,
50 identification_t *gateway);
51
52 #endif /** REDIRECT_JOB_H_ @}*/