]> git.ipfire.org Git - thirdparty/strongswan.git/blame - src/libcharon/plugins/ha/ha_ike.h
Update copyright headers after acquisition by secunet
[thirdparty/strongswan.git] / src / libcharon / plugins / ha / ha_ike.h
CommitLineData
e5e91eec
MW
1/*
2 * Copyright (C) 2008 Martin Willi
19ef2aec
TB
3 *
4 * Copyright (C) secunet Security Networks AG
e5e91eec
MW
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.
e5e91eec
MW
15 */
16
17/**
d8748966
MW
18 * @defgroup ha_ike ha_ike
19 * @{ @ingroup ha
e5e91eec
MW
20 */
21
d8748966
MW
22#ifndef HA_IKE_H_
23#define HA_IKE_H_
e5e91eec 24
aa334daa
MW
25typedef struct ha_ike_t ha_ike_t;
26
d8748966
MW
27#include "ha_socket.h"
28#include "ha_tunnel.h"
29#include "ha_segments.h"
aa334daa 30#include "ha_cache.h"
e5e91eec
MW
31
32#include <daemon.h>
33
e5e91eec 34/**
c94fe198 35 * Listener to synchronize IKE_SAs.
e5e91eec 36 */
d8748966 37struct ha_ike_t {
e5e91eec
MW
38
39 /**
40 * Implements bus listener interface.
41 */
42 listener_t listener;
43
44 /**
d8748966 45 * Destroy a ha_ike_t.
e5e91eec 46 */
d8748966 47 void (*destroy)(ha_ike_t *this);
e5e91eec
MW
48};
49
50/**
d8748966 51 * Create a ha_ike instance.
e5e91eec
MW
52 *
53 * @param socket socket to use for sending synchronization messages
7ceaf50b 54 * @param tunnel tunnel securing sync messages, if any
aa334daa 55 * @param cache message cache
c94fe198 56 * @return IKE listener
e5e91eec 57 */
aa334daa
MW
58ha_ike_t *ha_ike_create(ha_socket_t *socket, ha_tunnel_t *tunnel,
59 ha_cache_t *cache);
e5e91eec 60
83b23011 61#endif /** HA_IKE_ @}*/