pkcs11: report the library version based on plug-n-play feature.
This commit is contained in:
parent
9901682288
commit
c2b6a0d500
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue