gnupg/scd
Werner Koch 5bf1212000
scd: Store a new PIV public key in the certificate DO.
* scd/app-piv.c (struct genkey_result_s): Remove type and all users.
(send_keypair_and_cert_info): Print certinfo only if we got a cert..
(readcert_by_tag): Add arg r_mechanism and implement reading of public
keys.
(get_keygrip_by_tag): Use a public key to compute the keygrip.
(do_readcert): Make sure to only return a certificate.
(do_readkey): Read public key from the DO if a certificate is missing.
(get_key_algorithm_by_dobj): Get the algorithm also from a public key.
(does_key_exist): String changes.
(do_genkey): Remove result caching and store public key in the DO.
--

This removes the result cache and instead stores the public key in the
certificate object.  This allows to properly list public keys at any
time after generating a key and before a new certificate is stored
there.

Signed-off-by: Werner Koch <wk@gnupg.org>
2019-02-07 16:14:09 +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: One new and one improved 7816 function. 2019-01-20 11:41:23 +01:00
apdu.h scd: One new and one improved 7816 function. 2019-01-20 11:41:23 +01:00
app-common.h scd: Make app_genkey and supporting ISO function more flexible. 2019-02-06 14:07:42 +01:00
app-dinsig.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
app-geldkarte.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
app-help.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app-nks.c scd: Add option --clear to PASSWD. 2019-01-21 14:06:51 +01:00
app-openpgp.c scd: Make app_genkey and supporting ISO function more flexible. 2019-02-06 14:07:42 +01:00
app-p15.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
app-piv.c scd: Store a new PIV public key in the certificate DO. 2019-02-07 16:14:09 +01:00
app-sc-hsm.c Remove -I option to common. 2017-03-07 20:25:54 +09:00
app.c scd: Make app_genkey and supporting ISO function more flexible. 2019-02-06 14:07:42 +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: Fix for USB INTERRUPT transfer. 2019-01-07 14:08:51 +09:00
ccid-driver.h scd: Support "acknowledge button" feature. 2018-10-11 15:41:49 +09:00
command.c scd: Store a new PIV public key in the certificate DO. 2019-02-07 16:14:09 +01:00
iso7816.c scd: Make app_genkey and supporting ISO function more flexible. 2019-02-06 14:07:42 +01:00
iso7816.h scd: Make app_genkey and supporting ISO function more flexible. 2019-02-06 14:07:42 +01:00
scdaemon-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
scdaemon.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
scdaemon.h scd: Add option --clear to PASSWD. 2019-01-21 14:06:51 +01:00