EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Make sure changed cards read correctly

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
Posted: 11/21/2013 02:59:05
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

How do I ensure that the contents of a new card in the card reader is updated correctly? I use both <TElPKCS11CertStorage>.RefreshCertificateContexts and <TElPKCS11CertStorage>.Module.Slot[<index>].Refresh, but I still get contents from the previous card in e g <TElX509Certificate>.SubjectRDN.

Posted: 11/21/2013 03:09:10
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

Please try to add pcsoAutoRefreshSlotInfo to TElPKCS11CertStorage.PKCS11Options and check if it solves the problem.
Posted: 11/21/2013 03:19:51
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

Sorry, no... Using that option-set I see that it is where I am also setting pcsoNoSessionLevelNotifications - a long shot, but could that be something affecting?
Posted: 11/21/2013 06:51:16
by Ken Ivanov (Team)

Hello Anders,

There is no way to, literally, 'update' the contents of the card. Whenever you switch a card in the card reader, it should be viewed as a sequence of two independent actions:

1. Old card removed. The session and all the related objects become invalid.

2. New card inserted. New session should be opened to access the card.

To deal with this, you should subscribe to OnSlotEvent event. Once you catch the event, please call the provided slot object's Refresh() method to obtain the updated token information. Then open the new session and log into it as usual.
Posted: 11/25/2013 03:51:22
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

Thanks, problem solved. I had a hidden exception that made a jump over the step "set session variable to nil", so the old session was still around. My bad!

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.



Topic viewed 849 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!