Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread Robert Relyea
On 10/20/2009 02:56 AM, David Smith wrote: > On Tue, Oct 20, 2009 at 6:47 PM, Alon Bar-Lev wrote: > >> Oh... I really don't know libp11... >> But if one process called C_Initialize() and then another/same thread >> called C_Initialize() again and calls C_Finalize, first thread will >> not be ab

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread David Smith
Thanks Andreas! 2009/10/20 Andreas Jellinghaus > Hi David, > > thanks for both patches, they look good to me so I applied them > right away. > > Regards, Andreas > ___ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.ope

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread Andreas Jellinghaus
Hi David, thanks for both patches, they look good to me so I applied them right away. Regards, Andreas ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread David Smith
On Tue, Oct 20, 2009 at 6:47 PM, Alon Bar-Lev wrote: > Oh... I really don't know libp11... > But if one process called C_Initialize() and then another/same thread > called C_Initialize() again and calls C_Finalize, first thread will > not be able to continue working. > That could be an acceptable

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread David Smith
On Tue, Oct 20, 2009 at 6:41 PM, Alon Bar-Lev wrote: > For the C_Initialize() patch... If you got already initialize you > should not call C_Finalize. Can you explain more? How should the handling look like with libp11? > > > On Tue, Oct 20, 2009 at 11:23 AM, David Smith > wrote: >> Hi OpenSC f

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread Alon Bar-Lev
Oh... I really don't know libp11... But if one process called C_Initialize() and then another/same thread called C_Initialize() again and calls C_Finalize, first thread will not be able to continue working. On Tue, Oct 20, 2009 at 11:45 AM, David Smith wrote: > On Tue, Oct 20, 2009 at 6:41 PM, Al

Re: [opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread Alon Bar-Lev
For the C_Initialize() patch... If you got already initialize you should not call C_Finalize. On Tue, Oct 20, 2009 at 11:23 AM, David Smith wrote: > Hi OpenSC folks, > > While debugging some issues with pkcs#11 related handling in > wpasupplicant, I found two small bugs that I'm sending patches

[opensc-devel] patches related to reopening PKCS#11 modules in same process

2009-10-20 Thread David Smith
Hi OpenSC folks, While debugging some issues with pkcs#11 related handling in wpasupplicant, I found two small bugs that I'm sending patches for. Both are related to attempting to reuse pkcs#11 modules in one process, something that wpasupplicant does when switching to and from networks that one w