diff options
Diffstat (limited to 'src/module.c')
-rw-r--r-- | src/module.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/module.c b/src/module.c index 9e018e7..e47ba38 100644 --- a/src/module.c +++ b/src/module.c @@ -17,6 +17,12 @@ static CK_C_INITIALIZE_ARGS init_args; static void (*init_func)(void) = NULL; static int is_initialized = 0; +void +p11t_module_config(const char *name, const char *value) +{ + if(strcmp(name, "init-string") == 0) + init_string = value; +} static CK_RV create_mutex(void **mutex) @@ -342,10 +348,3 @@ p11t_module_unload(void) dlclose(module); module = NULL; } - -void -p11t_module_config(const char *name, const char *value) -{ - if(strcmp(name, "init-string") == 0) - init_string = value; -} |