pkcs11: report the library version based on plug-n-play feature.

This commit is contained in:
Martin Paljak 2013-03-15 21:17:43 +02:00
parent 9901682288
commit c2b6a0d500
1 changed files with 5 additions and 1 deletions

View File

@ -330,7 +330,11 @@ CK_RV C_GetInfo(CK_INFO_PTR pInfo)
memset(pInfo, 0, sizeof(CK_INFO));
pInfo->cryptokiVersion.major = 2;
pInfo->cryptokiVersion.minor = 20;
if (sc_pkcs11_conf.plug_and_play) {
pInfo->cryptokiVersion.minor = 20;
} else {
pInfo->cryptokiVersion.minor = 11;
}
strcpy_bp(pInfo->manufacturerID,
"OpenSC (www.opensc-project.org)",
sizeof(pInfo->manufacturerID));