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
change PIN works, sorry. Change label still 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.
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.