1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* g10.c (main) [ENABLE_CARD_SUPPORT]: Add a default for

--pcsc-driver.

* cardglue.c (learn_status_cb): Fixed faulty use of !space.
This commit is contained in:
Werner Koch 2003-10-25 14:17:24 +00:00
parent 8fbf5b8aba
commit bc45e6e065
5 changed files with 27 additions and 7 deletions

View file

@ -298,7 +298,8 @@ ct_activate_card (int reader)
{
log_error ("ct_activate_card(%d): activation failed: %s\n",
reader, ct_error_string (rc));
log_printhex ("buffer:", buf, buflen);
if (!rc)
log_printhex (" received data:", buf, buflen);
return -1;
}
@ -972,7 +973,7 @@ apdu_open_reader (const char *portstr)
pcsc_disconnect = dlsym (handle, "SCardDisconnect");
pcsc_status = dlsym (handle, "SCardStatus");
#ifdef _WIN32
if (pcsc_status)
if (!pcsc_status)
pcsc_status = dlsym (handle, "SCardStatusA");
#endif
pcsc_begin_transaction = dlsym (handle, "SCardBeginTransaction");