Enumeration InitializeFinalizeBehavior

Controls C_Initialize() and C_Finalize() are called on the PKCS#11 library.

Enumeration Members

Enumeration Members

DEFAULT: 0

Default behavior that accommodates most use cases.

C_Initialize() is called on creation, and "already-initialized" errors are ignored. C_Finalize() is never called, just in case another part of your application is still using the PKCS#11 library.

OMIT: 1

Skip calling C_Initialize() and C_Finalize().

Use this if your application has already initialized the PKCS#11 library, and you do not want C_Initialize() called again.

STRICT: 2

C_Initialize() is called on creation and C_Finalize() is called on cleanup.

If C_Initialize() reports that's it's already initialized, this is treated as an error. Use this if you need perfect cleanup (ex: running valgrind with --leak-check).

Generated using TypeDoc