bc1443012a89d4b278188d592caaa256bcf41f96
[strongswan.git] / src / pluto / modecfg.h
1 /* Mode Config related functions
2 * Copyright (C) 2001-2002 Colubris Networks
3 * Copyright (C) 2003-2004 Xelerance Corporation
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 #ifndef _MODECFG_H
17 #define _MODECFG_H
18
19 struct state;
20 struct msg_digest;
21
22 /* ModeConfig pull mode start function */
23 extern stf_status modecfg_send_request(struct state *st);
24
25 /* ModeConfig pull mode state transition functions */
26 extern stf_status modecfg_inR0(struct msg_digest *md);
27 extern stf_status modecfg_inI1(struct msg_digest *md);
28
29 /* ModeConfig push mode start function */
30 extern stf_status modecfg_send_set(struct state *st);
31
32 /* ModeConfig push mode state transition functions */
33 extern stf_status modecfg_inI0(struct msg_digest *md);
34 extern stf_status modecfg_inR3(struct msg_digest *md);
35
36 /* XAUTH start function */
37 extern stf_status xauth_send_request(struct state *st);
38
39 /* XAUTH state transition funcgtions */
40 extern stf_status xauth_inI0(struct msg_digest *md);
41 extern stf_status xauth_inR1(struct msg_digest *md);
42 extern stf_status xauth_inI1(struct msg_digest *md);
43 extern stf_status xauth_inR2(struct msg_digest *md);
44
45 #endif /* _MODECFG_H */