Thanks for your answer! But in this example (rsa security) it looks like it could be used without a
pointer...or am I wrong?
This sample could be using some macro that hides the dereferencing of the pointer, but even that doesn't explain why it does not seem to call GetFunctionList first.
Directly calling the function is very unusual.
Despite that the PKCS#11 v2 says you should use C_GetFunctionList, in most implementations the PKCS#11 library still exports the sub-function so you could call them directly.
But in most any case, you want your programm to interface with any pkcs#11 module, so you never statically link it with a given PKCS#11 library which the only way to directly call the function.
So whether you do it as it should be, using C_GetFunctionList, or use a dynamic library loading function to locate the function address, you always end up calling a pointer, so your sample is very strange and not really functionnal.
