1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/scd
NIIBE Yutaka 9934889415 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.

(backport of commit f42c50dbf0)
2015-12-15 09:48:06 +09:00
..
apdu.c scd: Fix "Conflicting usage" bug. 2015-12-15 09:48:06 +09:00
apdu.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
app-common.h scd: Fix "Conflicting usage" bug. 2015-12-15 09:48:06 +09:00
app-dinsig.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
app-geldkarte.c Fix for extended length Le in decipher 2009-09-03 10:57:23 +00:00
app-help.c More support for Netkey cards. 2009-05-08 15:07:45 +00:00
app-nks.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
app-openpgp.c Use inline functions to convert buffer data to scalars. 2015-02-12 20:34:44 +01:00
app-p15.c A bunch of minor changes 2009-12-21 16:19:09 +00:00
app.c scd: Fix "Conflicting usage" bug. 2015-12-15 09:48:06 +09:00
atr.c Change default gpgsm cipher back to 3DES. 2009-02-09 10:25:41 +00:00
atr.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-common.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-dinsig.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
card-p15.c Use bin2hex if possible. 2008-11-03 10:54:18 +00:00
card.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
ccid-driver.c scd: Fix ccid-driver timeout for OpenPGPcard v2.1. 2015-09-17 11:32:24 +09:00
ccid-driver.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-02 19:28:02 +01:00
command.c scd: Avoid double-free on error condition in scd 2015-01-13 10:52:22 +09:00
iso7816.c scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
iso7816.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00
Makefile.am Improve configure option --with-libgpg-error-prefix 2014-06-24 10:36:15 +02:00
pcsc-wrapper.c scd: PC/SC reader selection by partial string match. 2015-05-01 14:16:28 +09:00
sc-copykeys.c SCD: API cleanup for keypad handling. 2013-02-05 14:09:47 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:17:04 +02:00
scdaemon.c Remove thread callbacks for libgcrypt >= 1.6. 2014-06-24 10:56:19 +02:00
scdaemon.h scd: Rename 'keypad' to 'pinpad'. 2013-02-08 09:20:43 +09:00