Fix for smartcards with gpg 1.4.2 under Mac OS X

John Clizbe JPClizbe at comcast.net
Thu Feb 2 06:07:50 CET 2006


Benjamin Donnachie wrote:
> 
> A quick and dirty fix to get gnupg v1.4.2 to work with Mac OS X's built
> in smartcard support with a USB reader...
> 
> Edit g10/g10.c in the gnupg source directory and change:
<snip>
> to:
> 
> #ifdef ENABLE_CARD_SUPPORT
> # ifdef _WIN32
>     opt.pcsc_driver = "winscard.dll";
> #else
>     opt.pcsc_driver = "/System/Library/Frameworks/PCSC.framework/PCSC";
> //    opt.pcsc_driver = "libpcsclite.so";
> #endif
> #endif /*ENABLE_CARD_SUPPORT*/
> 
> Make sure that pcscd is running and smartcard support should work!
> 
> Remember, smartcard readers should now be installed in
> /usr/libexec/SmartCardServices/drivers/ - see
> http://developer.apple.com/qa/qa2004/qa1359.html
> 
> This isn't a very elegant solution, but it works...

not very portable either.

Here's the fix that's in 1.4.3-cvs:

#ifdef ENABLE_CARD_SUPPORT
#if defined(_WIN32) || defined(__CYGWIN__)
    opt.pcsc_driver = "winscard.dll";
#elif defined(__APPLE__)
    opt.pcsc_driver = "/System/Library/Frameworks/PCSC.framework/PCSC";
#else
    opt.pcsc_driver = "libpcsclite.so";
#endif
#endif /*ENABLE_CARD_SUPPORT*/


-- 
John P. Clizbe                      Inet:   John (a) Mozilla-Enigmail.org
You can't spell fiasco without SCO. PGP/GPG KeyID: 0x608D2A10/0x18BB373A
"what's the key to success?"        / "two words: good decisions."
"what's the key to good decisions?" /  "one word: experience."
"how do i get experience?"          / "two words: bad decisions."

"Just how do the residents of Haiku, Hawai'i hold conversations?"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 671 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20060201/9de7c9b4/signature.pgp


More information about the Gnupg-devel mailing list