2010/11/25 Andre Zepezauer <andre.zepeza...@student.uni-halle.de>:
> Thanks for help. Please remove these two lines:
> http://www.opensc-project.org/opensc/browser/trunk/src/libopensc/card-entersafe.c#L137

pkcs15-init: card-entersafe.c:383: entersafe_read_binary: Assertion
`count <= card->max_recv_size' failed.

card->max_recv_size is set to 0. So the assertion fails.

So I used:
        card->max_send_size = 255;
        card->max_recv_size = 256;

And it worked. typescript attached.

Extract:
0xb73976c0 14:16:05.481 [pkcs15-init] card.c:500:sc_update_binary:
called; 255 bytes at index 0
0xb73976c0 14:16:05.481 [pkcs15-init]
card-entersafe.c:408:entersafe_update_binary: called
0xb73976c0 14:16:05.481 [pkcs15-init]
card-entersafe.c:326:entersafe_transmit_apdu: called
0xb73976c0 14:16:05.481 [pkcs15-init] apdu.c:187:sc_apdu_log:
Outgoing APDU data [  260 bytes] =====================================
00 D6 00 00 FF 4D 61 6B 65 66 69 6C 65 0A 4D 61 .....Makefile.Ma
6B 65 66 69 6C 65 2E 69 6E 0A 63 6F 72 65 0A 61 kefile.in.core.a
72 63 68 69 76 65 0A 61 63 69 6E 63 6C 75 64 65 rchive.acinclude
2E 6D 34 0A 61 63 6C 6F 63 61 6C 2E 6D 34 0A 61 .m4.aclocal.m4.a
75 74 6F 6D 34 74 65 2E 63 61 63 68 65 0A 63 6F utom4te.cache.co
6D 70 69 6C 65 0A 63 6F 6E 66 64 65 66 73 2E 68 mpile.confdefs.h
0A 63 6F 6E 66 69 67 2E 2A 0A 63 6F 6E 66 69 67 .config.*.config
75 72 65 0A 63 6F 6E 66 74 65 73 74 0A 63 6F 6E ure.conftest.con
66 74 65 73 74 2E 63 0A 64 65 70 63 6F 6D 70 0A ftest.c.depcomp.
69 6E 73 74 61 6C 6C 2D 73 68 0A 6C 69 62 74 6F install-sh.libto
6F 6C 0A 6C 69 62 74 6F 6F 6C 2E 6D 34 0A 6C 74 ol.libtool.m4.lt
2A 2E 6D 34 0A 6C 74 6D 61 69 6E 2E 73 68 0A 6D *.m4.ltmain.sh.m
69 73 73 69 6E 67 0A 6D 6B 69 6E 73 74 61 6C 6C issing.mkinstall
64 69 72 73 0A 73 6F 5F 6C 6F 63 61 74 69 6F 6E dirs.so_location
73 0A 73 74 61 6D 70 2D 68 2A 0A 0A 2E 64 65 70 s.stamp-h*...dep
73 0A 2E 6C 69 62 73 0A 2E 23 2A 23 0A 2E 2A 2E s..libs..#*#..*.
62 61 6B 0A                                     bak.
======================================================================
0xb73976c0 14:16:05.481 [pkcs15-init] apdu.c:527:sc_transmit_apdu: called

I can reread the object with no error and no corruption using:
$ pkcs11-tool --read-object --type data --login --pin 0000 --label MyObject

Anything else I can do for you?

-- 
 Dr. Ludovic Rousseau

Attachment: typescript.bz2
Description: BZip2 compressed data

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to