Annotation of embedaddon/strongswan/src/libcharon/processing/jobs/update_sa_job.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2008 Martin Willi
! 3: * HSR 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:
! 16: /**
! 17: * @defgroup update_sa_job update_sa_job
! 18: * @{ @ingroup cjobs
! 19: */
! 20:
! 21: #ifndef UPDATE_SA_JOB_H_
! 22: #define UPDATE_SA_JOB_H_
! 23:
! 24: typedef struct update_sa_job_t update_sa_job_t;
! 25:
! 26: #include <library.h>
! 27: #include <networking/host.h>
! 28: #include <processing/jobs/job.h>
! 29: #include <crypto/proposal/proposal.h>
! 30:
! 31: /**
! 32: * Update the addresses of an IKE and its CHILD_SAs.
! 33: */
! 34: struct update_sa_job_t {
! 35:
! 36: /**
! 37: * implements job_t interface
! 38: */
! 39: job_t job_interface;
! 40: };
! 41:
! 42: /**
! 43: * Creates a job to update IKE and CHILD_SA addresses.
! 44: *
! 45: * @param protocol IPsec protocol of SA to update
! 46: * @param spi SPI of SA to update
! 47: * @param dst old destination host of SA to update
! 48: * @param new new address and port
! 49: * @return update_sa_job_t object
! 50: */
! 51: update_sa_job_t *update_sa_job_create(protocol_id_t protocol,
! 52: uint32_t spi, host_t *dst, host_t *new);
! 53:
! 54: #endif /** UPDATE_SA_JOB_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>