5a350d939b568ab02de91e95d105a7568e4dbb12
[strongswan.git] / src / charon / processing / jobs / update_sa_job.h
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 *
15 * $Id$
16 */
17
18 /**
19 * @defgroup update_sa_job update_sa_job
20 * @{ @ingroup jobs
21 */
22
23 #ifndef UPDATE_SA_JOB_H_
24 #define UPDATE_SA_JOB_H_
25
26 typedef struct update_sa_job_t update_sa_job_t;
27
28 #include <library.h>
29 #include <utils/host.h>
30 #include <processing/jobs/job.h>
31
32 /**
33 * Update the addresses of an IKE and its CHILD_SAs.
34 */
35 struct update_sa_job_t {
36
37 /**
38 * implements job_t interface
39 */
40 job_t job_interface;
41 };
42
43 /**
44 * Creates a job to update IKE and CHILD_SA addresses.
45 *
46 * @param reqid reqid of the CHILD_SA
47 * @param new new address and port
48 * @return update_sa_job_t object
49 */
50 update_sa_job_t *update_sa_job_create(u_int32_t reqid, host_t *new);
51
52 #endif /*UPDATE_SA_JOB_H_ @} */