[opensc-devel] [PATCH] buffer overflow fix

2012-10-22 Thread Emmanuel Dreyfus
Hi Please check in the fix below. --- src/pkcs11/pkcs11-global.c.orig 2012-10-22 09:11:56.0 +0200 +++ src/pkcs11/pkcs11-global.c 2012-10-22 09:12:14.0 +0200 @@ -43,9 +43,9 @@ #if defined(HAVE_PTHREAD) && defined(PKCS11_THREAD_LOCKING) #include CK_RV mutex_create(void **mu

Re: [opensc-devel] PIN not sent to card before signing

2012-10-22 Thread Douglas E. Engert
Based on the information in this thread, it looks like pkcs11-tool is is missing two lines that would check if the CKA_ALWAYS_AUTHENTICATE is set for the key in the sign_data routine. Can you try the attached patch? On 10/22/2012 3:10 AM, Mathias Tausig wrote: On Sunday 21. October 2012 17:24:

Re: [opensc-devel] PIN not sent to card before signing

2012-10-22 Thread Mathias Tausig
On Sunday 21. October 2012 17:24:41 you wrote: > Hello, > > Le 19/10/2012 15:02, Mathias Tausig a écrit : > > I am writing a PKCS#15 application for a (cardos v4.4) smartcard which > > references an external signature application. The RSA key and the PIN are > > stored in that external application

Re: [opensc-devel] adding support for a java applet

2012-10-22 Thread Andreas Schwier
Dear Aidin, for writing a card driver I would suggest to pick one of the existing drivers and adapt to your specific needs. It's a little bit of work, but it can be done. It's probably best to start with the integration into opensc-explorer. Once you get that to work, take the next step and devel

Re: [opensc-devel] adding support for a java applet

2012-10-22 Thread helpcrypto helpcrypto
Maybe Im wrong, but AFAIK if opensc says unsupported card, then you have to make a driver for it: http://www.opensc-project.org/opensc/wiki/FrequentlyAskedQuestions#Q:WhattodoifmycardisnotsupportedbyOpenSC On Mon, Oct 22, 2012 at 8:48 AM, aidin boghaniyan wrote: > Hello again, > Do anybody have