X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=blobdiff_plain;f=src%2Flibhydra%2Fhydra.h;h=8670f3969ce3c6ae648ff3dfd99490abc159fe41;hp=2d8ef9cc1cddead4ee91e7fd12afd90c55d251b0;hb=257e27df0785371ab0dfe3d45863865a3353087a;hpb=567d3f14639f769b1b2a6ba4dd327ef0b4960c06;ds=sidebyside diff --git a/src/libhydra/hydra.h b/src/libhydra/hydra.h index 2d8ef9c..8670f39 100644 --- a/src/libhydra/hydra.h +++ b/src/libhydra/hydra.h @@ -39,23 +39,34 @@ typedef struct hydra_t hydra_t; * IKE Daemon support object. */ struct hydra_t { + /** * manager for payload attributes */ attribute_manager_t *attributes; + + /** + * name of the daemon that initialized the library + */ + const char *daemon; }; /** - * The single instance of hydra_t. Set between calls to libhydra_init() and - * libhydra_deinit() calls. + * The single instance of hydra_t. + * + * Set between calls to libhydra_init() and libhydra_deinit() calls. */ extern hydra_t *hydra; /** * Initialize libhydra. + * + * The daemon's name is used to load daemon-specific settings. + * + * @param daemon name of the daemon that initializes the library * @return FALSE if integrity check failed */ -bool libhydra_init(); +bool libhydra_init(const char *daemon); /** * Deinitialize libhydra.