diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c index e725c10..94cf4d4 100644 --- a/ssh-pkcs11.c +++ b/ssh-pkcs11.c @@ -601,7 +601,7 @@ pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp) goto fail; } - getfunctionlist = GetProcAddress(handle, "C_GetFunctionList"); + getfunctionlist = (CK_RV(*)(CK_FUNCTION_LIST **))GetProcAddress(handle, "C_GetFunctionList"); if (getfunctionlist == NULL) {