1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00
gnupg/scd
Werner Koch beaa2cbb7f
scd:p15: Show a pretty PIN prompt.
* scd/app-p15.c (struct prkdf_object_s): New fields common_name and
serial_number.
(release_prkdflist): Free them.
(keygrip_from_prkdf): Parse cert and set them.
(any_control_or_space): New.
(make_pin_prompt): New.
(verify_pin): Construct a pretty PIN prompt.
(do_sign): Remove debug output.
--

The D-Trust card has the SerialNumber part of the Subject printed on
the front matter, we assume this is also possible with other cards and
thus we show this as serial number.

The holder of the card is also extracted from the card's subject.

Signed-off-by: Werner Koch <wk@gnupg.org>

Backported from master.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-04-15 15:42:01 +02:00
..
apdu.c scd: Distinguish cancel by user and protocol error. 2019-02-19 15:51:14 +09:00
apdu.h scd: Distinguish cancel by user and protocol error. 2019-02-19 15:51:14 +09:00
app-common.h scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-dinsig.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-geldkarte.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-help.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app-nks.c scd: Factor common PIN status check out. 2020-04-15 15:35:55 +02:00
app-openpgp.c scd:openpgp: New attribute "MANUFACTURER". 2020-04-15 15:16:05 +02:00
app-p15.c scd:p15: Show a pretty PIN prompt. 2020-04-15 15:42:01 +02:00
app-sc-hsm.c scd:p15: Support signing with CardOS 5 cards. 2020-04-01 16:00:31 +02:00
app.c scd: Don't let the "undefined" app cause a conflict error. 2019-02-25 08:50:31 +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,ccid: Add support of GEMPC_EZIO. 2019-11-15 15:49:46 +09:00
ccid-driver.h scd,ccid: Add support of GEMPC_EZIO. 2019-11-15 15:49:46 +09:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
command.c scd: Make app_genkey and supporting ISO function more flexible. 2019-02-11 10:59:32 +01:00
iso7816.c scd: Return GPG_ERR_BAD_PIN on 0x63Cn status word. 2020-04-15 15:38:13 +02:00
iso7816.h scd: Factor common PIN status check out. 2020-04-15 15:35:55 +02:00
Makefile.am Remove -I option to common. 2017-03-07 20:25:54 +09:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00
scdaemon.h build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:37:34 +01:00