change some properties not work

1/16/2013 3:18:58 PM
Gravatar
Total Posts 10

change some properties not work

Hi Ugo,

if I changed label of eToken (session.Token.Info.Label = "xxxxx") or I  changed the PIN (session.SetPIN(string1,string2) it was not a fire. No error is shown... 

I´m logged in the session (I can create key etc.).

 

Thanx ahuiko

1/17/2013 11:19:08 AM
Gravatar
Total Posts 10

Re: change some properties not work

change PIN works, sorry. Change label still not work :-(

1/17/2013 12:09:11 PM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: change some properties not work

You cannot change the label after token initialization.

PKCS#11 specifications states that the token label can be set once by the function InitToken and after that it never can be changed.

1/18/2013 9:55:48 AM
Gravatar
Total Posts 10

Re: change some properties not work

Thanx, function InitToken(password, label) change the label.

 

from Alladin manual: 

The attribute CKA_LABEL contains the token label (the same one as is
returned by the C_GetTokenInfo function) in the form of nullterminated
CK_UTF8CHAR string. This is the only attribute that can
be changed by using C_SetAttributeValue function. It requires
CKU_USER to be logged on.