Fix for smartcards with gpg 1.4.2 under Mac OS X
Benjamin Donnachie
benjamin at pythagoras.no-ip.org
Thu Feb 2 01:00:54 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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:
#ifdef ENABLE_CARD_SUPPORT
# ifdef _WIN32
opt.pcsc_driver = "winscard.dll";
#else
opt.pcsc_driver = "libpcsclite.so";
#endif
#endif /*ENABLE_CARD_SUPPORT*/
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...
Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iQIVAwUBQ+FLtegNmph0Y1E2AQLdGw/8Dk7p4mVyxHZKXlpH8tCRJYee+3UTRj1U
5naUtrhXElxy9Fuv/OqxIeoGDOHpZxatlBFYZr3fQMmcTxM8UXIooaQpBwJB/I58
EJiFyD/Oqbb0HDW/uLQ465cOPxVzexvV+MtX5hMxnOtHFrsl5SWK7r6La/aA1OxX
07N0PutmQLtswVchuB7H36iDidXPeSCCA8HowCvJlKlS7pkYUJFIuvMD6pjb/ejR
SqEgx7GoxtthXvANpOfaefqRRJbnuSmOJVGNQYp5bXCppSeas3CUPyUgcDFTTKiw
TYcgj9Xm+kn/Up8sJ+lEX+X6XuZQNM6ON0o4JXdimIks38WdVmI+ynmjOsolD9FX
T3naaxSI7geUoAXrSbB8owIRMxNrpJBHHadIVunoitLmEkoaKT8p5TyiUIg2FffE
evkMn3nl+Hc16eN1hgXTChV46+ts5vVYHUFZ0zcOAUvCXNjXSYtGyNEunZrnd3i6
emLv0Ag9bIa9gVWNRB8/9m62tpB/wbGJV2ipVKjn0PvkUY59iw4XTCxeR0ckKZc7
AHziA0C6ARdDujJBtB6SvjPe74giA4/qpPoKT8wIFTVfWlTaNfmWLiH5UcVh9TH3
vef+G4hrz+CvxVWbNf4Ip1QLGtG5neGQux6Ls8u0VuYrOnkx9E2n0+XfXezb3Sd1
x7nNETypIJ8=
=bc6Q
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list