Excuse me, my fault.
Thanke you.
Julien Pierre wrote:
> Robert List wrote:
>
>> Hallo!
>>
>> I have developed a pkcs11 library according to the austrian signature
>> legislation.
>>
>> The Manage Security Device function displays various slot and token info.
>> The values of field version isnt displayed correctly.
>> The version of my slots looks like 2002.6 and your code displays 210.6.
>
>
> This is how a CK_VERSION is defined in the PKCS#11 specification, as
> well as in NSS in mozilla/security/nss/lib/softoken/pkcs11t.h :
>
> typedef struct CK_VERSION {
> CK_BYTE major; /* integer portion of version number */
> CK_BYTE minor; /* 1/100ths portion of version number */
> } CK_VERSION;
>
> You can't have 2002 as the major version number because it overflows one
> byte.
>
> FYI :
> 2002 = 0x7D2
> 210 = 0x0D2
>