diff options
Diffstat (limited to 'tests/pkcs11/pkcs11-mock2.c')
-rw-r--r-- | tests/pkcs11/pkcs11-mock2.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/pkcs11/pkcs11-mock2.c b/tests/pkcs11/pkcs11-mock2.c index 44bf517bc3..0e9cab819f 100644 --- a/tests/pkcs11/pkcs11-mock2.c +++ b/tests/pkcs11/pkcs11-mock2.c @@ -20,7 +20,7 @@ */ #ifdef HAVE_CONFIG_H -#include <config.h> +# include <config.h> #endif #include <dlfcn.h> @@ -54,8 +54,7 @@ static CK_FUNCTION_LIST override_funcs; static CK_RV override_C_GetMechanismInfo(CK_SLOT_ID slot_id, - CK_MECHANISM_TYPE type, - CK_MECHANISM_INFO *info) + CK_MECHANISM_TYPE type, CK_MECHANISM_INFO * info) { if (type == CKM_RSA_PKCS_PSS) return CKR_MECHANISM_INVALID; @@ -63,8 +62,7 @@ override_C_GetMechanismInfo(CK_SLOT_ID slot_id, return base_C_GetMechanismInfo(slot_id, type, info); } -CK_RV -C_GetFunctionList(CK_FUNCTION_LIST **function_list) +CK_RV C_GetFunctionList(CK_FUNCTION_LIST ** function_list) { CK_C_GetFunctionList func; CK_FUNCTION_LIST *funcs; @@ -86,13 +84,12 @@ C_GetFunctionList(CK_FUNCTION_LIST **function_list) return CKR_OK; } -static _CONSTRUCTOR void -mock_init(void) +static _CONSTRUCTOR void mock_init(void) { const char *lib; /* suppress compiler warning */ - (void) set_softhsm_conf; + (void)set_softhsm_conf; lib = softhsm_lib(); @@ -101,8 +98,7 @@ mock_init(void) exit(77); } -static _DESTRUCTOR void -mock_deinit(void) +static _DESTRUCTOR void mock_deinit(void) { dlclose(dl); } |