OpenSC/OpenSC — pull request #96 by CardContact (2012-10-15 14:57:29+00:00)
Title: Added initialization of SmartCard-HSM using C_InitializeToken and C_InitPIN

The following two commits add the ability to initialize the SmartCard-HSM using a PKCS#11 like mechanism, i.e. the token initialization with C_InitializeToken and initial user PIN definition with C_InitPIN.

In order to accomplish this, two new generic scardctl have been added. A a card supporting PKCS#11 like initialization shall provide these functions, other should return SC_ERROR_NOT_SUPPORTED.

We'd also like to enhance the sc_pkcs15_tokeninfo structure to contain hardware and firmware information filled-in by the card driver. This shall allow a user to determine the version information for the token in PKCS#11 aware applications.