gnupg/scd
Werner Koch 3a8250c020
scd: Rework the handling of the displayed serial number.
* scd/app.c (app_new_register): Call app_munge_serialno for Yubikeys.
(app_munge_serialno): Handle Yubikey serial numbers.
(card_get_serialno): Remove special Yubikey treatment.  Drop arg
is_canonical.
(app_get_serialno): Clear ERRNO on error.
(card_get_dispserialno): New.  Also change formatting of Yubikey and
OpenPGP numbers to match those printed on the card.
(app_get_dispserialno): New.
* scd/app-openpgp.c (do_getattr): Use app_get_dispserialno.
(yubikey_get_serialno): Remove.
* scd/app-piv.c (get_dispserialno): Remove.
(do_getattr): Use app_get_dispserialno.
--

This patch gets us back to a unique serial number for cards and
provides a stable serial number as printed for Yubikeys.

Because we use a slightly different serial number now for Yubikeys and
cards only supporting OpenPGP card we need to come up with another
change so that the version number of OpenPGP serial numbers are
ignored when comparing card serial numbers.  This is so that existing
stub keys of gpg-agent will continue to work.

GnuPG-bug-id: 5100
Signed-off-by: Werner Koch <wk@gnupg.org>
2020-11-25 10:23:55 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am scd: Add very basic support for PIV cards. 2019-01-20 11:45:57 +01:00
apdu.c scd: Do not print reader status change with --debug cardio. 2020-11-11 15:23:26 +01:00
apdu.h scd: Map some error codes from libusb to ccid-driver error codes. 2020-08-12 16:06:49 +02:00
app-common.h scd: Rework the handling of the displayed serial number. 2020-11-25 10:23:55 +01:00
app-dinsig.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-geldkarte.c scd: First changes to implement a PIN cache. 2020-01-07 18:45:33 +01:00
app-help.c scd: Extend KEYPAIRINFO with an algorithm string. 2020-09-21 14:47:53 +02:00
app-nks.c scd,nks: Fix SEGV for learn for older card. 2020-11-25 10:32:28 +09:00
app-openpgp.c scd: Rework the handling of the displayed serial number. 2020-11-25 10:23:55 +01:00
app-p15.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app-piv.c scd: Rework the handling of the displayed serial number. 2020-11-25 10:23:55 +01:00
app-sc-hsm.c scd: Extend an internal function to also return the algo. 2020-05-05 08:07:11 +02:00
app.c scd: Rework the handling of the displayed serial number. 2020-11-25 10:23:55 +01:00
atr.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
atr.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccid-driver.c scd: Internal CCID driver: Fix a race condition on close. 2020-11-05 16:10:15 +09:00
ccid-driver.h common: Allow building with released libgpg-error. 2020-10-23 20:16:18 +02:00
command.c scd: Rework the handling of the displayed serial number. 2020-11-25 10:23:55 +01:00
iso7816.c scd: Map some error codes from libusb to ccid-driver error codes. 2020-08-12 16:06:49 +02:00
iso7816.h scd:nks: Implement writecert for the Signature card v2. 2020-07-02 18:35:34 +02:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c gpgconf: Further simplify the gpgconf option processing. 2020-03-14 19:12:41 +01:00
scdaemon.h scd: New command DEVINFO. 2020-04-02 15:39:26 +09:00