android: Improved simplified Chinese translation / 完善了简体中文翻译
[strongswan.git] / src / charon-tkm / src / ees / ees_callbacks.h
1 /*
2 * Copyright (C) 2012 Reto Buerki
3 * Copyright (C) 2012 Adrian-Ken Rueegsegger
4 * HSR Hochschule fuer Technik Rapperswil
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 tkm-eescallbacks ees callbacks
19 * @{ @ingroup tkm
20 *
21 * ESP SA Event Service (EES) callbacks.
22 * The xfrm-proxy forwards acquire and expire events from the kernel to
23 * charon-tkm using the EES interface. Upon reception of an event the
24 * corresponding callback is executed.
25 */
26
27 #ifndef EES_CALLBACKS_H_
28 #define EES_CALLBACKS_H_
29
30 /**
31 * Process Acquire event for given security policy.
32 */
33 void charon_esa_acquire(result_type *res, const sp_id_type sp_id);
34
35 /**
36 * Process Expire event for given security policy.
37 */
38 void charon_esa_expire(result_type *res, const sp_id_type sp_id,
39 const esp_spi_type spi_rem, const protocol_type protocol,
40 const expiry_flag_type hard);
41
42 #endif /** EES_CALLBACKS_H_ @}*/