aboutsummaryrefslogtreecommitdiffstats
path: root/src/scepclient/scepclient.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-04-11 18:54:18 +0200
committerMartin Willi <martin@revosec.ch>2011-04-15 10:07:12 +0200
commit787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5 (patch)
treef8c05bcf7572117763fd50eaf315a13c2e6261d2 /src/scepclient/scepclient.c
parent6e2791715b7534b601ff5d5163d63d88ad7a8a5e (diff)
downloadstrongswan-787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5.tar.bz2
strongswan-787b5884aaf873fb9fda2b0d8b7c3d54e38ae7a5.tar.xz
Added a get_name() function to plugin_t, create_plugin_enumerator enumerates over plugin_t
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r--src/scepclient/scepclient.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index 448854acd..887b41765 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -279,14 +279,15 @@ usage(const char *message)
*/
static void print_plugins()
{
- char buf[BUF_LEN], *plugin;
+ char buf[BUF_LEN];
+ plugin_t *plugin;
int len = 0;
enumerator_t *enumerator;
enumerator = lib->plugins->create_plugin_enumerator(lib->plugins);
while (len < BUF_LEN && enumerator->enumerate(enumerator, &plugin))
{
- len += snprintf(&buf[len], BUF_LEN-len, "%s ", plugin);
+ len += snprintf(&buf[len], BUF_LEN-len, "%s ", plugin->get_name(plugin));
}
enumerator->destroy(enumerator);
DBG1(DBG_LIB, " loaded plugins: %s", buf);