Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Ludovic Rousseau
2011/6/21 Martin Paljak : > On Tue, Jun 21, 2011 at 19:23, Ludovic Rousseau > wrote: > >> One option is to configure pkcs11-spy to NOT export symbols except >> C_GetFunctionList. It will try and let you know. > You mean this: > > https://github.com/martinpaljak/OpenSC/commit/5a2306967175ea96eaf9d0

Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Martin Paljak
On Tue, Jun 21, 2011 at 19:23, Ludovic Rousseau wrote: > One option is to configure pkcs11-spy to NOT export symbols except > C_GetFunctionList. It will try and let you know. You mean this: https://github.com/martinpaljak/OpenSC/commit/5a2306967175ea96eaf9d058224fb9c394791f74 That is anyway the

Re: [opensc-devel] Static PKCS#11 for OpenPGP v.2

2011-06-21 Thread Peter Koch
Hi Adam If you are looking for a standalone PKCS#11-library for OpenPGP cards you may try the library that I wrote for the CrytpStick http://www.privacyfoundation.de/crypto_stick/ The CryptoStick is a USB device with a builtin OpenPGP chip so all software for the CryptoStick works with "normal" O

Re: [opensc-devel] Do smart card drivers generally support more than one PKCS#11 session?

2011-06-21 Thread Stef Walter
Sorry for taking so long to answer, was away for a week... On 06/15/2011 11:28 PM, Nikos Mavrogiannopoulos wrote: > On 06/13/2011 11:11 AM, Stef Walter wrote: >> Since the PKCS#11 URI's say that the pinfile attribute of the URI >> can be determined by the application, we can build something simple

Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Ludovic Rousseau
2011/6/21 Douglas E. Engert : > > > On 6/21/2011 9:56 AM, Ludovic Rousseau wrote: >> 2011/6/21 Ludovic Rousseau: >>> Hello, >>> >>> I try to debug a PKCS#11 program using pkcs11-spy. >>> The problem is that for an unknown reason the C_Initialize() from the >>> spy is calling istelf instead of the C

Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Douglas E. Engert
On 6/21/2011 9:56 AM, Ludovic Rousseau wrote: > 2011/6/21 Ludovic Rousseau: >> Hello, >> >> I try to debug a PKCS#11 program using pkcs11-spy. >> The problem is that for an unknown reason the C_Initialize() from the >> spy is calling istelf instead of the C_Initialize from OpenSC. >> >> After som

Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Douglas E. Engert
On 6/21/2011 8:29 AM, Ludovic Rousseau wrote: > Hello, > > I try to debug a PKCS#11 program using pkcs11-spy. > The problem is that for an unknown reason the C_Initialize() from the > spy is calling istelf instead of the C_Initialize from OpenSC. > > After some 261418 calls the program crashes be

Re: [opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Ludovic Rousseau
2011/6/21 Ludovic Rousseau : > Hello, > > I try to debug a PKCS#11 program using pkcs11-spy. > The problem is that for an unknown reason the C_Initialize() from the > spy is calling istelf instead of the C_Initialize from OpenSC. > > After some 261418 calls the program crashes because of a stack >

[opensc-devel] Infinite recursion on C_Initialize() with pkcs11-spy

2011-06-21 Thread Ludovic Rousseau
Hello, I try to debug a PKCS#11 program using pkcs11-spy. The problem is that for an unknown reason the C_Initialize() from the spy is calling istelf instead of the C_Initialize from OpenSC. After some 261418 calls the program crashes because of a stack exhaustion of something similar. With anot

Re: [opensc-devel] opensc-tool, verify, Pinpad

2011-06-21 Thread Ludovic Rousseau
2011/6/21 Johannes Becker : > Hello, > > Am Samstag 18 Juni 2011 schrieb Hans Witvliet: > ... >> But with some cards it works > ... >> If i use a pinpad-reader (Xiring in my case) i get an prompt on the >> reader, and have to type the ping on the reader-keyboard. > > With all my readers, even w

Re: [opensc-devel] opensc-tool, verify, Pinpad

2011-06-21 Thread Johannes Becker
Hello, Am Samstag 18 Juni 2011 schrieb Hans Witvliet: ... > But with some cards it works ... > If i use a pinpad-reader (Xiring in my case) i get an prompt on the > reader, and have to type the ping on the reader-keyboard. With all my readers, even with the Xiring I get OpenSC [3F00]> verif

[opensc-devel] Check the lib is initialized before logging

2011-06-21 Thread Ludovic Rousseau
Hello, I found a bug that leads to an assert. Check the lib is initialized before logging C_CloseSession() and C_CloseAllSessions() were calling sc_debug() before any check on the validity of the context. So if C_Initialize() was not previously called you get an assert: log.c:76: sc_do_log_va: As