aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/unencrypted_notify.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-11-09 11:17:20 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:45:42 +0100
commita60b8928412f6fbe6e6fa0d5f8a68c9f3e96025b (patch)
treea781471d727c7596f24532ebe57cc6a050e9228c /src/conftest/hooks/unencrypted_notify.c
parente5e71e46d9decbfeac85530f3e12d0c4d6b78781 (diff)
downloadstrongswan-a60b8928412f6fbe6e6fa0d5f8a68c9f3e96025b.tar.bz2
strongswan-a60b8928412f6fbe6e6fa0d5f8a68c9f3e96025b.tar.xz
Support hook suffixes to use the same hook multiple times
Diffstat (limited to 'src/conftest/hooks/unencrypted_notify.c')
-rw-r--r--src/conftest/hooks/unencrypted_notify.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c
index 7db929614..1d7f42def 100644
--- a/src/conftest/hooks/unencrypted_notify.c
+++ b/src/conftest/hooks/unencrypted_notify.c
@@ -126,7 +126,7 @@ METHOD(hook_t, destroy, void,
/**
* Create the IKE_AUTH fill hook
*/
-hook_t *unencrypted_notify_hook_create(void)
+hook_t *unencrypted_notify_hook_create(char *name)
{
private_unencrypted_notify_t *this;
@@ -138,15 +138,15 @@ hook_t *unencrypted_notify_hook_create(void)
.destroy = _destroy,
},
.id = conftest->test->get_int(conftest->test,
- "hooks.unencrypted_notify.id", 2),
+ "hooks.%s.id", 2, name),
.type = conftest->test->get_str(conftest->test,
- "hooks.unencrypted_notify.type", ""),
+ "hooks.%s.type", "", name),
.data = conftest->test->get_str(conftest->test,
- "hooks.unencrypted_notify.data", ""),
+ "hooks.%s.data", "", name),
.spi = conftest->test->get_int(conftest->test,
- "hooks.unencrypted_notify.spi", 0),
+ "hooks.%s.spi", 0, name),
.esp = conftest->test->get_bool(conftest->test,
- "hooks.unencrypted_notify.esp", FALSE),
+ "hooks.%s.esp", FALSE, name),
);
return &this->hook;