CheckCryptokiVersion

Thales supports multiple versions of PKCS#11, but V 1.x and v 2.x are incompatible. An application compiled for V 1.x compliance is likely to crash if it links against a V 2.x compliant DLL, and vice versa.

This function is used to check that the version of CRYPTOKI is correct for the application and will report if an incompatible Cryptoki DLL is loaded. The application should report this fact and terminate.

All the sample applications make this call to check the Cryptoki version they are running.

Synopsis

CK_RV CheckCryptokiVersion(void);

Note that this API is implemented as a macro.