From: Nikos M. <n.m...@gm...> - 2013-02-18 18:36:11
|
On 02/18/2013 06:34 PM, Douglas E. Engert wrote: >> Hello, >> I've noticed that C_Initialize takes excessive time on the opensc >> pkcs11 module when a smart card is present. When no smart card is >> present everything is ok. This causes quite a problem in gnutls which >> has transparent smart card support and calls C_Initialize on startup. As >> a result, every application that uses gnutls gets 4-6 second delay on >> startup, irrespective on whether it will read that smart card or not. >> >> The attached patch seems to fix the initialization delays and the cards >> I have seem to work fine. > > With your mod in place, do smart cards still work with gnutls? > > The card-detect will have to be called sometime... Yes, but that should be when someone asks for a card. GnuTLS works fine with this patch, because the cards are detected in C_GetTokenInfo() which is the expected place. regards, Nikos |