aboutsummaryrefslogtreecommitdiffstats
path: root/common/stringhelp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-02-07 15:13:21 +0000
committerWerner Koch <[email protected]>2019-02-07 15:14:09 +0000
commit5bf1212000f48243642ace0f708fd27446879b9e (patch)
tree733d5d8198b507c88d7e8ed4f325749ae34e5d2d /common/stringhelp.c
parentcard: Support reading and writing PIV certificates (diff)
downloadgnupg-5bf1212000f48243642ace0f708fd27446879b9e.tar.gz
gnupg-5bf1212000f48243642ace0f708fd27446879b9e.zip
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 <[email protected]>
Diffstat (limited to 'common/stringhelp.c')
0 files changed, 0 insertions, 0 deletions