Проблема с примерами в SDK (ruToken S, slots.Count == 0)
Здравствуйте!
Есть ruToken S, виден в панели управления Рутокен. Но в большинстве примеров (c#, c) выводится нулевое количество слотов и работа прекращается:
Library initialization
Checking tokens available
Operation failed [Message: No available slots]
Единственный пример, который заработал: pkcs11\samples\Extended\GeneralPurpose
Initialization...
LoadLibrary -> OK
GetProcAddress -> OK
GetProcAddress -> OK
Get function list -> OK
Get function list extended -> OK
C_Initialize -> OK
C_GetSlotList (number of slots) -> OK
Checking available tokens -> OK
Memory allocation for slots -> OK
C_GetSlotList -> OK
Slots available: 1
Initialization has been completed successfully.Getting extended token information...
C_EX_GetTokenInfoExtended -> OK
Extended token information has been got successfully.Extended initializing token...
C_EX_InitToken -> OK
Token has been initialized successfully.Extended PIN function test...
C_OpenSession -> OK
Locking user PIN...
1. C_Login with wrong user PIN: -> Wrong PIN
2. C_Login with wrong user PIN: -> Wrong PIN
3. C_Login with wrong user PIN: -> Wrong PIN
4. C_Login with wrong user PIN: -> Wrong PIN
5. C_Login with wrong user PIN: -> Wrong PIN
6. C_Login with wrong user PIN: -> Wrong PIN
7. C_Login with wrong user PIN: -> Wrong PIN
8. C_Login with wrong user PIN: -> Wrong PIN
9. C_Login with wrong user PIN: -> Wrong PIN
10. C_Login with wrong user PIN: -> PIN Locked
Unlocking user PIN...
C_Login (CKU_SO) -> OK
C_EX_UnblockUserPIN -> OK
C_Logout -> OK
Extended PIN function test has been completed successfully.
...
Версия драйверов рутокен в панели управления: 4.5.2.0.
При этом версия rtPKCS11ECP.dll в System32 и в SysWOW64: 1.9.2.0, а в sdk 1.8.2.0.
Хотелось бы понять как решить данную проблему.