I'm not sure if I have the same problem Dejan ran into, but
pkcs15-init is still failing for me. Now the problem is
...
card.c:531:sc_select_file: called; type=2, path=3f0050154946
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:334:select_item: returning with: -1201
card-muscle.c:404:muscle_select_file: returning with: -1201
card.c:553:sc_select_file: returning with: -1201
Failed to create PKCS #15 meta structure: File not found

any idea? Here is what I did to the token
        http://www.opensc-project.org/opensc/wiki/Cyberflex

and I ran pkcs15-init -C --so-pin 123456 --so-puk 78907890
and entered "00000000" for the Unspecified PIN [Reference 1].

full pkcs15-init log file is attached.

Thanks for your help!

Regards, Andreas

Dejan Gambin wrote:
Hi,

I have been able to solve the problem with muscle_create_file using the
following:

- instead of calling mscfs_lookup_local(fs, file->id, (u8*)&objectId); I
have put:
        objectId[0] = fs->currentPath[0];
        objectId[1] = fs->currentPath[1];
        objectId[2] = (file->id >> 8) & 0xFF;
        objectId[3] = file->id & 0xFF;

and after that modified the call to msc_create_object to: r =
msc_create_object(card, bebytes2ulong(objectId), objectSize, read, write,
delete); If I can see, muscle_create_directory is doing the similat thing. I
don't know if this is the error but this works for me on Windows...

regards, dejan
sc.c:196:sc_detect_card_presence: called
sc.c:201:sc_detect_card_presence: returning with: 1
card.c:110:sc_connect_card: called
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3b:6e:00:ff:45:73:74:45:49:44:20:76:65:72:20:31:2e:30
card.c:753:match_atr_table: ATR try : 
3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43
card.c:753:match_atr_table: ATR try : 
3b:fe:94:00:ff:80:b1:fa:45:1f:03:45:73:74:45:49:44:20:76:65:72:20:31:2e:30:43
card.c:753:match_atr_table: ATR try : 
3b:ff:94:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:23
card.c:753:match_atr_table: ATR try : 
3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
reader-pcsc.c:546:pcsc_connect: Requesting reader features ... 
reader-pcsc.c:599:pcsc_connect: SCardControl failed -2146435068
card.c:140:sc_connect_card: matching configured ATRs
card.c:182:sc_connect_card: matching built-in ATRs
card.c:188:sc_connect_card: trying driver: cardos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
card.c:753:match_atr_table: ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:03:15
card.c:753:match_atr_table: ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:04:12
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:75
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:02:c1:0a:31:fe:55:c8:07:76
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:02:c1:0a:31:fe:58:c8:08:74
card.c:753:match_atr_table: ATR try : 
3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
card.c:753:match_atr_table: ATR try : 
3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
card.c:753:match_atr_table: ATR try : 
3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
card.c:753:match_atr_table: ATR try : 
3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
card.c:188:sc_connect_card: trying driver: cardos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c
card.c:753:match_atr_table: ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:03:15
card.c:753:match_atr_table: ATR try : 3b:f2:98:00:ff:c1:10:31:fe:55:c8:04:12
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:75
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:02:c1:0a:31:fe:55:c8:07:76
card.c:753:match_atr_table: ATR try : 3b:f2:18:00:02:c1:0a:31:fe:58:c8:08:74
card.c:753:match_atr_table: ATR try : 
3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47
card.c:753:match_atr_table: ATR try : 
3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3
card.c:753:match_atr_table: ATR try : 
3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28
card.c:753:match_atr_table: ATR try : 
3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4
card.c:188:sc_connect_card: trying driver: flex
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
card.c:753:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
card.c:753:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
card.c:753:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
card.c:753:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
card.c:753:match_atr_table: ATR try : 3B:02:14:50
card.c:753:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
card.c:753:match_atr_table: ATR try : 3B:32:15:00:06:80
card.c:753:match_atr_table: ATR try : 3B:32:15:00:06:95
card.c:753:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
card.c:753:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
card.c:753:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
card.c:753:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
card.c:188:sc_connect_card: trying driver: cyberflex
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3b:95:15:40:20:68:01:02:00:00
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:01
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:68:01:02:02:04
card.c:753:match_atr_table: ATR try : 3B:85:40:20:68:01:01:05:01
card.c:753:match_atr_table: ATR try : 3B:95:94:40:FF:63:01:01:02:01
card.c:753:match_atr_table: ATR try : 3B:95:15:40:FF:63:01:01:02:01
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:64:02:01:01:02
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:01:00:00
card.c:762:match_atr_table: ATR mask: FF:FF:FF:FF:FF:FF:FF:FF:00:00
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:01:02:01:04
card.c:753:match_atr_table: ATR try : 3B:95:18:40:FF:62:04:01:01:05
card.c:753:match_atr_table: ATR try : 3b:95:15:40:ff:68:01:02:45:47
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:06
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:05
card.c:753:match_atr_table: ATR try : 3B:E2:00:00:40:20:49:07
card.c:753:match_atr_table: ATR try : 3B:85:40:20:68:01:01:03:05
card.c:753:match_atr_table: ATR try : 3B:02:14:50
card.c:753:match_atr_table: ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0
card.c:753:match_atr_table: ATR try : 3B:32:15:00:06:80
card.c:753:match_atr_table: ATR try : 3B:32:15:00:06:95
card.c:753:match_atr_table: ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0
card.c:753:match_atr_table: ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0
card.c:753:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:3F
card.c:753:match_atr_table: ATR try : 3B:16:94:81:10:06:01:81:2F
card.c:188:sc_connect_card: trying driver: gpk
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3B:27:00:80:65:A2:04:01:01:37
card.c:753:match_atr_table: ATR try : 3B:27:00:80:65:A2:05:01:01:37
card.c:753:match_atr_table: ATR try : 3B:27:00:80:65:A2:0C:01:01:37
card.c:753:match_atr_table: ATR try : 3B:A7:00:40:14:80:65:A2:14:01:01:37
card.c:753:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:08:01:01:52
card.c:753:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:01:52
card.c:753:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:02:52
card.c:753:match_atr_table: ATR try : 3B:A7:00:40:18:80:65:A2:09:01:03:52
card.c:188:sc_connect_card: trying driver: miocos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:9D:94:40:23:00:68:10:11:4D:69:6F:43:4F:53:00:90:00
card.c:753:match_atr_table: ATR try : 
3B:9D:94:40:23:00:68:20:01:4D:69:6F:43:4F:53:00:90:00
card.c:188:sc_connect_card: trying driver: mcrd
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:FF:94:00:FF:80:B1:FE:45:1F:03:00:68:D2:76:00:00:28:FF:05:1E:31:80:00:90:00:23
card.c:753:match_atr_table: ATR try : 
3B:FE:94:00:FF:80:B1:FA:45:1F:03:45:73:74:45:49:44:20:76:65:72:20:31:2E:30:43
card.c:753:match_atr_table: ATR try : 
3B:6E:00:FF:45:73:74:45:49:44:20:76:65:72:20:31:2E:30
card.c:753:match_atr_table: ATR try : 
3b:6f:00:ff:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00
card.c:753:match_atr_table: ATR try : 
3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6
card.c:188:sc_connect_card: trying driver: setcos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:1F:11:00:67:80:42:46:49:53:45:10:52:66:FF:81:90:00
card.c:753:match_atr_table: ATR try : 
3B:9F:94:40:1E:00:67:16:43:46:49:53:45:10:52:66:FF:81:90:00
card.c:753:match_atr_table: ATR try : 
3b:9f:94:40:1e:00:67:00:43:46:49:53:45:10:52:66:ff:81:90:00
card.c:753:match_atr_table: ATR try : 
3b:6b:00:ff:80:62:00:a2:56:46:69:6e:45:49:44
card.c:753:match_atr_table: ATR try : 3b:64:00:ff:80:62:00:a2
card.c:753:match_atr_table: ATR try : 
3b:7b:00:00:00:80:62:00:51:56:46:69:6e:45:49:44
card.c:753:match_atr_table: ATR try : 3b:64:00:00:80:62:00:51
card.c:753:match_atr_table: ATR try : 
3b:6e:00:00:00:62:00:00:57:41:56:41:4e:54:10:81:90:00
card.c:753:match_atr_table: ATR try : 
3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44
card.c:753:match_atr_table: ATR try : 
3b:9f:94:80:1f:c3:00:68:10:44:05:01:46:49:53:45:31:c8:07:90:00:18
card.c:753:match_atr_table: ATR try : 
3b:9f:94:80:1f:c3:00:68:11:44:05:01:46:49:53:45:31:c8:00:00:00:00
card.c:188:sc_connect_card: trying driver: starcos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:B7:94:00:c0:24:31:fe:65:53:50:4b:32:33:90:00:b4
card.c:753:match_atr_table: ATR try : 
3B:B7:94:00:81:31:fe:65:53:50:4b:32:33:90:00:d1
card.c:188:sc_connect_card: trying driver: tcos
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:BA:13:00:81:31:86:5D:00:64:05:0A:02:01:31:80:90:00:8B
card.c:753:match_atr_table: ATR try : 
3B:BA:14:00:81:31:86:5D:00:64:05:14:02:02:31:80:90:00:91
card.c:753:match_atr_table: ATR try : 
3B:BA:96:00:81:31:86:5D:00:64:05:60:02:03:31:80:90:00:66
card.c:753:match_atr_table: ATR try : 
3B:BA:96:00:81:31:86:5D:00:64:05:7B:02:03:31:80:90:00:7D
card.c:188:sc_connect_card: trying driver: openpgp
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3b:fa:13:00:ff:81:31:80:45:00:31:c1:73:c0:01:00:00:90:00:b1
card.c:188:sc_connect_card: trying driver: jcop
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:E6:00:FF:81:31:FE:45:4A:43:4F:50:33:31:06
card.c:188:sc_connect_card: trying driver: oberthur
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 
3B:7D:18:00:00:00:31:80:71:8E:64:77:E3:01:00:82:90:00
card.c:753:match_atr_table: ATR try : 
3B:7D:18:00:00:00:31:80:71:8E:64:77:E3:02:00:82:90:00
card.c:753:match_atr_table: ATR try : 
3B:7D:11:00:00:00:31:80:71:8E:64:77:E3:01:00:82:90:00
card.c:753:match_atr_table: ATR try : 
3B:7D:11:00:00:00:31:80:71:8E:64:77:E3:02:00:82:90:00
card.c:753:match_atr_table: ATR try : 
3B:7B:18:00:00:00:31:C0:64:77:E3:03:00:82:90:00
card.c:188:sc_connect_card: trying driver: belpic
card.c:745:match_atr_table: ATR     : 3b:75:94:00:00:62:02:02:02:01
card.c:753:match_atr_table: ATR try : 3B:98:13:40:0A:A5:03:01:01:01:AD:13:11
card.c:753:match_atr_table: ATR try : 3B:98:94:40:0A:A5:03:01:01:01:AD:13:10
card.c:753:match_atr_table: ATR try : 3B:98:94:40:FF:A5:03:01:01:01:AD:13:10
card.c:188:sc_connect_card: trying driver: atrust-acos
card.c:188:sc_connect_card: trying driver: muscle
apdu.c:504:sc_transmit_apdu: called
card.c:291:sc_lock: called
card.c:311:sc_unlock: called
card.c:196:sc_connect_card: matched: Muscle Card Driver
card.c:221:sc_connect_card: card info: Muscle Card, -1, 0x3
card.c:222:sc_connect_card: returning with: 0
card.c:291:sc_lock: called
card.c:667:sc_card_ctl: called
card.c:674:sc_card_ctl: card_ctl(4) not supported
card.c:531:sc_select_file: called; type=2, path=3f0050154946
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:334:select_item: returning with: -1201
card-muscle.c:404:muscle_select_file: returning with: -1201
card.c:553:sc_select_file: returning with: -1201
profile.c:316:sc_profile_load: Trying profile file 
/home/aj/opentest/share/opensc/pkcs15.profile
profile.c:324:sc_profile_load: profile 
/home/aj/opentest/share/opensc/pkcs15.profile loaded ok
profile.c:316:sc_profile_load: Trying profile file 
/home/aj/opentest/share/opensc/muscle.profile
profile.c:324:sc_profile_load: profile 
/home/aj/opentest/share/opensc/muscle.profile loaded ok
card.c:531:sc_select_file: called; type=2, path=3f00
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
pkcs15-lib.c:3201:sc_pkcs15init_authenticate: path=3f00, op=3
card.c:531:sc_select_file: called; type=2, path=3f00
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
sec.c:154:sc_pin_cmd: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
sec.c:201:sc_pin_cmd: returning with: 0
card.c:531:sc_select_file: called; type=2, path=3f00
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
pkcs15-lib.c:3201:sc_pkcs15init_authenticate: path=3f00, op=3
card.c:531:sc_select_file: called; type=2, path=3f00
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
sec.c:154:sc_pin_cmd: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
sec.c:201:sc_pin_cmd: returning with: 0
pkcs15-lib.c:3433:sc_pkcs15init_fixup_file: sc_pkcs15init_fixup_file: user pin 
is CVH1
card.c:667:sc_card_ctl: called
card.c:674:sc_card_ctl: card_ctl(4) not supported
card.c:361:sc_create_file: called; type=2, path=3f005015, size=1
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card.c:366:sc_create_file: returning with: 0
card.c:531:sc_select_file: called; type=2, path=3f005015
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
card.c:531:sc_select_file: called; type=2, path=3f005015
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
pkcs15-lib.c:3201:sc_pkcs15init_authenticate: path=3f005015, op=3
card.c:667:sc_card_ctl: called
card.c:674:sc_card_ctl: card_ctl(5) not supported
pkcs15-lib.c:2529:sc_pkcs15init_add_object: called, DF 8 obj 0x520ca0
asn1.c:1155:asn1_encode_entry: encoding 'pin'
asn1.c:1161:asn1_encode_entry: type=258, tag=0x1000010, parm=0x7ffffff69700, 
len=0
asn1.c:1155:asn1_encode_entry:  encoding 'commonObjectAttributes'
asn1.c:1161:asn1_encode_entry:  type=129, tag=0x1000010, parm=0x7ffffff691e0, 
len=0
asn1.c:1155:asn1_encode_entry:   encoding 'label'
asn1.c:1161:asn1_encode_entry:   type=12, tag=0x0c, parm=0x7ffffff68f94, len=8
asn1.c:1331:asn1_encode_entry:   length of encoded item=10
asn1.c:1155:asn1_encode_entry:   encoding 'flags'
asn1.c:1161:asn1_encode_entry:   type=131, tag=0x03, parm=0x7ffffff69094, len=4
asn1.c:1331:asn1_encode_entry:   length of encoded item=4
asn1.c:1155:asn1_encode_entry:   encoding 'authId' (not present)
asn1.c:1331:asn1_encode_entry:   length of encoded item=0
asn1.c:1155:asn1_encode_entry:   encoding 'userConsent' (not present)
asn1.c:1331:asn1_encode_entry:   length of encoded item=0
asn1.c:1155:asn1_encode_entry:   encoding 'accessControlRules' (not present)
asn1.c:1331:asn1_encode_entry:   length of encoded item=0
asn1.c:1331:asn1_encode_entry:  length of encoded item=16
asn1.c:1155:asn1_encode_entry:  encoding 'classAttributes'
asn1.c:1161:asn1_encode_entry:  type=129, tag=0x1000010, parm=0x7ffffff696b0, 
len=0
asn1.c:1155:asn1_encode_entry:   encoding 'authId'
asn1.c:1161:asn1_encode_entry:   type=257, tag=0x04, parm=0x51c630, len=0
asn1.c:1331:asn1_encode_entry:   length of encoded item=3
asn1.c:1331:asn1_encode_entry:  length of encoded item=5
asn1.c:1155:asn1_encode_entry:  encoding 'subClassAttributes' (not present)
asn1.c:1331:asn1_encode_entry:  length of encoded item=0
asn1.c:1155:asn1_encode_entry:  encoding 'typeAttributes'
asn1.c:1161:asn1_encode_entry:  type=129, tag=0x21000001, parm=0x7ffffff69660, 
len=0
asn1.c:1155:asn1_encode_entry:   encoding 'pinAttributes'
asn1.c:1161:asn1_encode_entry:   type=129, tag=0x1000010, parm=0x7ffffff69480, 
len=0
asn1.c:1155:asn1_encode_entry:    encoding 'pinFlags'
asn1.c:1161:asn1_encode_entry:    type=131, tag=0x03, parm=0x51c73c, len=4
asn1.c:1331:asn1_encode_entry:    length of encoded item=4
asn1.c:1155:asn1_encode_entry:    encoding 'pinType'
asn1.c:1161:asn1_encode_entry:    type=10, tag=0x0a, parm=0x51c740, len=0
asn1.c:1331:asn1_encode_entry:    length of encoded item=3
asn1.c:1155:asn1_encode_entry:    encoding 'minLength'
asn1.c:1161:asn1_encode_entry:    type=2, tag=0x02, parm=0x51c748, len=0
asn1.c:1331:asn1_encode_entry:    length of encoded item=3
asn1.c:1155:asn1_encode_entry:    encoding 'storedLength'
asn1.c:1161:asn1_encode_entry:    type=2, tag=0x02, parm=0x51c750, len=0
asn1.c:1331:asn1_encode_entry:    length of encoded item=3
asn1.c:1155:asn1_encode_entry:    encoding 'maxLength' (not present)
asn1.c:1331:asn1_encode_entry:    length of encoded item=0
asn1.c:1155:asn1_encode_entry:    encoding 'pinReference'
asn1.c:1161:asn1_encode_entry:    type=2, tag=0x20000000, parm=0x51c738, len=0
asn1.c:1331:asn1_encode_entry:    length of encoded item=3
asn1.c:1155:asn1_encode_entry:    encoding 'padChar'
asn1.c:1161:asn1_encode_entry:    type=4, tag=0x04, parm=0x51c760, len=1
asn1.c:1331:asn1_encode_entry:    length of encoded item=3
asn1.c:1155:asn1_encode_entry:    encoding 'lastPinChange' (not present)
asn1.c:1331:asn1_encode_entry:    length of encoded item=0
asn1.c:1155:asn1_encode_entry:    encoding 'path'
asn1.c:1161:asn1_encode_entry:    type=256, tag=0x1000010, parm=0x51c768, len=0
asn1.c:1155:asn1_encode_entry:     encoding 'path'
asn1.c:1161:asn1_encode_entry:     type=4, tag=0x04, parm=0x7ffffff68220, len=4
asn1.c:1331:asn1_encode_entry:     length of encoded item=6
asn1.c:1155:asn1_encode_entry:     encoding 'index' (not present)
asn1.c:1331:asn1_encode_entry:     length of encoded item=0
asn1.c:1155:asn1_encode_entry:     encoding 'length' (not present)
asn1.c:1331:asn1_encode_entry:     length of encoded item=0
asn1.c:1331:asn1_encode_entry:    length of encoded item=8
asn1.c:1331:asn1_encode_entry:   length of encoded item=29
asn1.c:1331:asn1_encode_entry:  length of encoded item=31
asn1.c:1331:asn1_encode_entry: length of encoded item=54
pkcs15-lib.c:3327:sc_pkcs15init_update_file: called, path=3f0050154401, 54 bytes
card.c:531:sc_select_file: called; type=2, path=3f0050154401
card-muscle.c:334:select_item: returning with: -1201
card-muscle.c:404:muscle_select_file: returning with: -1201
card.c:553:sc_select_file: returning with: -1201
card.c:531:sc_select_file: called; type=2, path=3f005015
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
pkcs15-lib.c:3201:sc_pkcs15init_authenticate: path=3f005015, op=3
pkcs15-lib.c:3433:sc_pkcs15init_fixup_file: sc_pkcs15init_fixup_file: user pin 
is CVH1
card.c:667:sc_card_ctl: called
card.c:674:sc_card_ctl: card_ctl(4) not supported
card.c:361:sc_create_file: called; type=2, path=3f0050154401, size=256
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card.c:366:sc_create_file: returning with: 0
card.c:531:sc_select_file: called; type=2, path=3f0050154401
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:334:select_item: returning with: File not found
card-muscle.c:404:muscle_select_file: returning with: File not found
card.c:553:sc_select_file: returning with: File not found
pkcs15-lib.c:3327:sc_pkcs15init_update_file: called, path=3f0050154946, 8 bytes
card.c:531:sc_select_file: called; type=2, path=3f0050154946
card-muscle.c:334:select_item: returning with: -1201
card-muscle.c:404:muscle_select_file: returning with: -1201
card.c:553:sc_select_file: returning with: -1201
card.c:531:sc_select_file: called; type=2, path=3f005015
card-muscle.c:404:muscle_select_file: returning with: 0
card.c:553:sc_select_file: returning with: 0
pkcs15-lib.c:3201:sc_pkcs15init_authenticate: path=3f005015, op=3
card.c:667:sc_card_ctl: called
card.c:674:sc_card_ctl: card_ctl(4) not supported
card.c:361:sc_create_file: called; type=2, path=3f0050154946, size=128
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card.c:366:sc_create_file: returning with: 0
card.c:531:sc_select_file: called; type=2, path=3f0050154946
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
apdu.c:504:sc_transmit_apdu: called
card.c:311:sc_unlock: called
card-muscle.c:334:select_item: returning with: -1201
card-muscle.c:404:muscle_select_file: returning with: -1201
card.c:553:sc_select_file: returning with: -1201
Failed to create PKCS #15 meta structure: File not found
card.c:311:sc_unlock: called
card.c:236:sc_disconnect_card: called
card.c:251:sc_disconnect_card: returning with: 0
ctx.c:732:sc_release_context: called
reader-openct.c:180:openct_reader_release: called
reader-openct.c:180:openct_reader_release: called
reader-openct.c:180:openct_reader_release: called
reader-openct.c:180:openct_reader_release: called
reader-openct.c:180:openct_reader_release: called
reader-openct.c:165:openct_reader_finish: called
Connecting to card in reader OpenCT 00 00...
Using card driver Muscle Card Driver.
About to create PKCS #15 meta structure.
Unspecified PIN [reference 1] required.
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to