1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00
gnupg/scd
NIIBE Yutaka f42c50dbf0 scd: Fix "Conflicting usage" bug.
* scd/apdu.c (apdu_close_reader): Call CLOSE_READER method even if we
  got an error from apdu_disconnect.
* scd/app-common.h (no_reuse): Remove.
* scd/app.c (application_notify_card_reset): Deallocate APP here.
(select_application, release_application): Don't use NO_REUSE.

--

Reproducible scenario: Invoke gpg --card-edit session from a terminal.
Invoke another gpg --card-edit session from another.  Remove a token.
Insert a token again.  Type RET on both terminals.  One of terminal
answers "Conflicting usage".

Perhaps, having NO_REUSE field was to avoid race conditions.  Now,
APP can be safely deallocated by application_notify_card_reset.

Thanks to the2nd.
2015-12-03 11:26:24 +09:00
..
apdu.c scd: Fix "Conflicting usage" bug. 2015-12-03 11:26:24 +09:00
apdu.h scd: Add reder information to --card-status. 2015-11-09 16:15:44 +09:00
app-common.h scd: Fix "Conflicting usage" bug. 2015-12-03 11:26:24 +09:00
app-dinsig.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
app-geldkarte.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-help.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
app-nks.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
app-openpgp.c scd: Fix for Curve25519 prefix handling. 2015-12-03 08:48:51 +09:00
app-p15.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
app-sc-hsm.c scd: Minor changes to app-sc-hsm. 2014-08-14 14:09:37 +02:00
app.c scd: Fix "Conflicting usage" bug. 2015-12-03 11:26:24 +09:00
atr.c Switch to the libgpg-error provided estream. 2014-08-26 17:47:54 +02:00
atr.h scd: Add option --dump-atr to command APDU. 2011-12-15 15:21:02 +01:00
ccid-driver.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
ccid-driver.h scd: Add reder information to --card-status. 2015-11-09 16:15:44 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
iso7816.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
iso7816.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:06:39 +09:00
Makefile.am scd: Remove unused files. 2015-07-09 12:51:03 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c build: Require at least Libassuan 2.4.1. 2015-12-02 18:57:49 +01:00
scdaemon.h Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros. 2015-07-26 12:50:24 +02:00