diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-14 13:22:48 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-14 13:22:48 +0000 |
commit | b1953ccd05b5e6cf5a87c557208d5f8a1fcad231 (patch) | |
tree | 18f93845a0a64dfd59ef89bb9df7ecd1eaecf979 /Source/charon/config/init_config.h | |
parent | 8a4911290753eb3b4d3070ed9097d7cbcd2fd349 (diff) | |
download | strongswan-b1953ccd05b5e6cf5a87c557208d5f8a1fcad231.tar.bz2 strongswan-b1953ccd05b5e6cf5a87c557208d5f8a1fcad231.tar.xz |
- first attempt for connection loading and starting via "stroke"
- some improvements here and there
Diffstat (limited to 'Source/charon/config/init_config.h')
-rw-r--r-- | Source/charon/config/init_config.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/charon/config/init_config.h b/Source/charon/config/init_config.h index f63df61cf..e9f1aa5af 100644 --- a/Source/charon/config/init_config.h +++ b/Source/charon/config/init_config.h @@ -148,12 +148,18 @@ struct init_config_t { }; /** - * @brief Creates a init_config_t object. + * @brief Creates a init_config_t object from two host_t's. * + * Supplied hosts become owned by init_config, so + * do not modify or destroy them after a call to + * init_config_create_from_hosts(). + * + * @param me host_t object representing local address + * @param other host_t object representing remote address * @return init_config_t object. * * @ingroup config */ -init_config_t * init_config_create(char *my_ip, char *other_ip, u_int16_t my_port, u_int16_t other_port); +init_config_t * init_config_create(host_t *me, host_t *other); -#endif //_INIT_CONFIG_H_ +#endif /* _INIT_CONFIG_H_ */ |