Re: Problem with ENGINE_cleanup with OpenSSL and PKCS11 engine

2010-03-17 Thread John R Pierce
Cesar Henrique Keiti Kuroiwa wrote: Now we seem to be facing a new issue that comes up when a wrong PIN is entered and then the card is removed from the reader. After that, we can no longer do anything with the card after it is re-inserted. Not even by cleaning and reloading all the ENGINE-relate

Re: Problem with ENGINE_cleanup with OpenSSL and PKCS11 engine

2010-03-17 Thread Cesar Henrique Keiti Kuroiwa
Hello again, We've made some progress with our tests. As it turns out, the main problem was with the call to ENGINE_finish, which we eliminated from our code for now. Now we seem to be facing a new issue that comes up when a wrong PIN is entered and then the card is removed from the reader. After

Re: Problem with ENGINE_cleanup with OpenSSL and PKCS11 engine

2010-03-17 Thread John R Pierce
Dr. Stephen Henson wrote: On Wed, Mar 17, 2010, Cesar Henrique Keiti Kuroiwa wrote: Hello We are trying to use the PKCS11 engine for OpenSSL to interface with a smart card reader "Gemplus GemPC Twin 00 00". We are having some trouble when trying to retrieve the private from a sma

Re: Problem with ENGINE_cleanup with OpenSSL and PKCS11 engine

2010-03-17 Thread Dr. Stephen Henson
On Wed, Mar 17, 2010, Cesar Henrique Keiti Kuroiwa wrote: > Hello > > We are trying to use the PKCS11 engine for OpenSSL to interface with a > smart card reader "Gemplus GemPC Twin 00 00". We are having some > trouble when trying to retrieve the private from a smart card to > decrypt

Problem with ENGINE_cleanup with OpenSSL and PKCS11 engine

2010-03-17 Thread Cesar Henrique Keiti Kuroiwa
Hello We are trying to use the PKCS11 engine for OpenSSL to interface with a smart card reader "Gemplus GemPC Twin 00 00". We are having some trouble when trying to retrieve the private from a smart card to decrypt some data. The problem arises when the wrong PIN number is given,