(no commit message)
[strongswan.git] / Source / charon / states / initiator_init.h
1 /**
2 * @file initiator_init.h
3 *
4 * @brief Start state of a IKE_SA as initiator
5 *
6 */
7
8 /*
9 * Copyright (C) 2005 Jan Hutter, Martin Willi
10 * Hochschule fuer Technik Rapperswil
11 *
12 * This program is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by the
14 * Free Software Foundation; either version 2 of the License, or (at your
15 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 */
22
23
24 #ifndef INITIATOR_INIT_H_
25 #define INITIATOR_INIT_H_
26
27 #include "state.h"
28
29 /**
30 * @brief This class represents an IKE_SA state when initializing
31 * a connection as initiator
32 *
33 */
34 typedef struct initiator_init_s initiator_init_t;
35
36 struct initiator_init_s {
37 /**
38 * methods of the state_t interface
39 */
40 state_t state_interface;
41
42 /**
43 * Initiate a new connection with given configuration name
44 *
45 * @param this calling object
46 * @param name name of the configuration
47 * @param new_state new state if call succeeded
48 * @return TODO
49 */
50 status_t (*initiate_connection) (initiator_init_t *this, char *name, state_t **new_state);
51 };
52
53 /**
54 * Constructor of class initiator_init_t
55 */
56 initiator_init_t *initiator_init_create();
57
58
59 #endif /*INITIATOR_INIT_H_*/