Re: [opensc-devel] Do smart card drivers generally support more than one PKCS#11 session?
On 06/09/2011 09:37 PM, Stef Walter wrote: I'm working on integrating smart card support via PKCS#11 into glib and gcr (part of gnome-keyring). We're integrating with GnuTLS for TLS support. I'd like to be able to do a C_Login in my code, and then pass off the URL to Gnutls. GnuTLS would then open another session, recognize that we're already logged in (this may need a slight tweak in the gnutls code) and then proceed without prompting the user. After sleeping on this idea, I realized it won't work in certain cases. In particular when the key has CKA_ALWAYS_AUTHENTICATE and requires C_Login with CKU_CONTEXT_SPECIFIC. The reason for this is that the gnutls callback for prompting the user to login is a global one, and hard to use from another library without assuming that the caller is the only gnutls consumer. I'll instead propose a patch to gnutls which associates the login callback with the private key. Cheers, Stef ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel
Re: [opensc-devel] Static link for opensc-pkcs11.dll
Le 08/06/2011 18:40, Viktor Tarasov a écrit : Le 08/06/2011 15:10, Viktor Tarasov a écrit : Le 08/06/2011 14:31, Martin Paljak a écrit : Hello, On Jun 7, 2011, at 19:15 , Viktor Tarasov wrote: Seems reasonable. Will see how it affects the size of the installer. The difference in size will be around 1M (both pkcs#11 and minidriver are static) . Hmm... Given that the current installer weights around 1.8M, adding another megabyte would be a lot (is this the raw file size or an compressed installer?). Ok, in you previous mail you've suggested the variant 'C' as a possible solution. In this case the difference in the MSI size will be around 0.5M . Can this one be adopted ? Maybe this helps: variant 'C' compiled with 'Minimize Size' optimization has the same size as the actual OpenSC-0.12.1-win32.msi . Any objections to use size optimization and static opensc-pkcs11.dll? What is, according to you, the upper limit for the size of installer ? Kind regards, Viktor. ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel