EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Slots and Sessions

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#27093
Posted: 11/04/2013 06:35:59
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

Just to be sure before I do too much damage to my code :-)

If I have a PKCS11 card with 2 slots and I want to open both slots I need 2 sessions? And the session numbering is just built from the ordering the sessions are added (or removed) from the storage?

/Anders
#27094
Posted: 11/04/2013 06:42:19
by Ken Ivanov (EldoS Corp.)

Hello Anders,

Yes, you need to open two sessions, one for each slot. Your understanding of session numbering is also correct.
#27095
Posted: 11/04/2013 07:19:03
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

Thanks! This leaves me with a Little problem: If I create sessions and want to ask the storage to close the session, I can only do this with an index (Storage.CloseSession(SessionIndex);) But how do I know what index a certain SessionInfo has? According to the help file the Session array property isn't implemented in Delphi, so I can't loop the sessions.

/Anders
#27096
Posted: 11/04/2013 07:24:36
by Ken Ivanov (EldoS Corp.)

Anders,

It seems that the information in the help file is a bit outdated. There are Session[] and SessionCount properties which you can use to iterate over session objects or pinpoint a particular session object.
#27097
Posted: 11/04/2013 07:29:08
by Rickard Hultgren (Standard support level)
Joined: 10/11/2013
Posts: 17

Quote
Ken Ivanov wrote:
It seems that the information in the help file is a bit outdated.


Just found out :-) Thanks anyway!

/Anders
#27202
Posted: 11/08/2013 09:34:03
by Vyacheslav Olshevsky (EldoS Corp.)

Dear Anders,
the version of the help available online on our website is always the latest, and we recommend to refer to it. In particular the description (with Pascal declaration) for TElPKCS11CertStorage.Session is available here:

https://www.eldos.com/documentation/sb...ssion.html

Sincerely yours,
Vyacheslav
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 596 times

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




|

Back to top

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

Got it!