]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - src/charon/config/backends/backend.h
4 * @brief Interface backend_t.
9 * Copyright (C) 2006 Martin Willi
10 * Hochschule fuer Technik Rapperswil
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>.
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
26 typedef struct backend_t backend_t
;
29 #include <config/ike_cfg.h>
30 #include <config/peer_cfg.h>
31 #include <utils/linked_list.h>
35 * @brief The interface for a configuration backend.
38 * - implementations constructor, such as local_backend_create()
45 * @brief Get an ike_cfg identified by two hosts.
47 * @param this calling object
48 * @param my_host address of own host
49 * @param other_host address of remote host
50 * @return matching ike_config, or NULL if none found
52 ike_cfg_t
*(*get_ike_cfg
)(backend_t
*this,
53 host_t
*my_host
, host_t
*other_host
);
56 * @brief Get a peer_cfg identified by two IDs.
58 * @param this calling object
60 * @param other_id peers ID
61 * @return matching peer_config, or NULL if none found
63 peer_cfg_t
*(*get_peer_cfg
)(backend_t
*this,
64 identification_t
*my_id
,
65 identification_t
*other_id
);
68 * @brief Get a peer_cfg identified by its name.
70 * @param this calling object
71 * @param name configs name
72 * @return matching peer_config, or NULL if none found
74 peer_cfg_t
*(*get_peer_cfg_by_name
)(backend_t
*this, char *name
);
77 #endif /* BACKEND_H_ */