[gpkcs11-dev] ...continuation: Problem storing objects in the software token
Status: Beta
Brought to you by:
cypherfox
|
From: Calogero <ca...@ti...> - 2002-10-04 20:09:57
|
...I saw the Problem storing objects post was truncated this is the last =
part:
It seems the easiest thing in the worl but this code doesn't work, or =
the sw token doesn't work. The log file reports this problem (look at =
the end):
=20
/* C_Initialize(): ...complete (OK) */
/* C_GetSlotList(): starting... (OK) */
/* C_GetSlotList(): Listing only slots with present tokens (OK) */
DO_FKT(C_GetSlotList, (TRUE,(nil),0xbffff888));
/* C_GetSlotList(): computing needed size of List-Array (OK) */
/* C_GetSlotList(): starting... (OK) */
/* C_GetSlotList(): Listing only slots with present tokens (OK) */
DO_FKT(C_GetSlotList, (TRUE,0x804ab78,0xbffff888));
/* C_GetSlotList(): *pulCount: 1(OK) */
/* C_GetSlotList(): returning *pulCount: 1(OK) */
/* C_GetSlotList(): ...complete (OK) */
/* C_OpenSession(): starting... (OK) */
DO_FKT(C_OpenSession, (0,6,(nil),(nil),0xbffff880));
/* CI_Ceay_OpenSession(): starting... (OK) */
/* CI_Ceay_ReadPersistentFile(): starting... (OK) */
/* CDB_Open(): no further objects (OK) */
/* CI_Ceay_ReadPersistentFile(): ...complete (OK) */
/* CI_Ceay_OpenSession(): ...complete (OK) */
/* C_OpenSession(): for Session 2...complete(OK) */
/* C_Login(): starting... (OK) */
DO_FKT(C_Login, (2,1,<opaque PIN>,8));
/* CI_Ceay_Login(): starting... (OK) */
/* CI_Ceay_TokenObjLoad(): starting... (OK) */
/* CDB_Open(): no further objects (OK) */
/* CI_Ceay_TokenObjLoad(): ...complete (OK) */
/* CI_Ceay_Login(): complete... (OK) */
/* CI_PropagateSessionState(): starting... (OK) */
/* CI_PropagateSessionState(): setting state to 3 for session 2(OK) */
/* CI_PropagateSessionState(): ...done (OK) */
/* C_Login(): ...complete (OK) */
/* C_GenerateKeyPair(): starting... (OK) */
DO_FKT(C_GenerateKeyPair, (2,{CKM_RSA_PKCS_KEY_PAIR_GEN, NULL_PTR, =
0x00000000},((ENCRYPT 01: #x00000001)
(VERIFY 01: #x00000001)
(WRAP 01: #x00000001)
(MODULUS_BITS 00:03:00:00: #x00000004)
(PUBLIC_EXPONENT 03: #x00000001)
),5,((TOKEN 01: #x00000001)
(PRIVATE 01: #x00000001)
(SUBJECT 54:65:73:74:69:6e:67:20:6b:65:79:73: #x0000000c)
(ID 31:32:33: #x00000003)
(SENSITIVE 01: #x00000001)
(DECRYPT 01: #x00000001)
(SIGN 01: #x00000001)
(UNWRAP 01: #x00000001)
),8,0xbffff870,0xbffff86c));
/* CI_ObjReadTemplate(): starting... (OK) */
/* CI_ObjReadTemplate(): ...complete (OK) */
/* CI_ObjReadTemplate(): starting... (OK) */
/* CI_ObjReadTemplate(): ...complete (OK) */
/* CI_Ceay_GenerateKeyPair(): starting... (OK) */
/* CI_Ceay_GenerateKeyPair(): warning: public key type not defined =
(TEMPLATE INCONSISTENT) */
/* CI_Ceay_GenerateKeyPair(): warning: private key type not defined =
(TEMPLATE INCONSISTENT) */
/* CI_ObjReadTemplate(): starting... (OK) */
/* CI_ObjReadTemplate(): ...complete (OK) */
/* CI_ObjReadTemplate(): starting... (OK) */
/* CI_ObjReadTemplate(): ...complete (OK) */
/* CI_Ceay_GeneratePair(): session_data is 0x804ab88(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 0(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 1(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 2(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 3(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 4(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime rejected: 0(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 0(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 1(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 2(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 3(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime suspected: 4(OK) */
/* CI_Ceay_RSA_Callback(): callback for prime rejected: 1(OK) */
/* CI_ObjMergeObj(): starting... (OK) */
/* CI_ObjMergeObj(): ...complete (OK) */
/* CI_ObjMergeObj(): starting... (OK) */
/* CI_ObjMergeObj(): ...complete (OK) */
/* CI_Ceay_GenerateKeyPair(): ...complete (OK) */
/* CI_TokenObjAdd(): starting... (OK) */
/* CI_Ceay_TokenObjAdd(): starting... (OK) */
/* CI_Ceay_TokenObjAdd(): cache already loaded =
(IMPL_DATA(persistent_cache): 0x804ac18(OK) */ <----- HERE
I tried also to store a certificate, but when the CI_Ceay_TokenObjAdd() =
is called, the problem is the same: "cache already loaded".
If you know how I can resolve this problem and complete my thesis I'll =
be very grateful with you.
Thank you in very much.
Calogero.=20
ca...@ti...
|