Home GnuPG
Diffusion GnuPG b262a21c617d

scd:openpgp: Support the ecdh-params arg for writing keys.

Description

scd:openpgp: Support the ecdh-params arg for writing keys.

* scd/app-openpgp.c (ecc_writekey): Use provided ECDH params to
compute the fingerprint.  Add a default for use by gnupg 2.2.
(store_fpr): Add arg update.
(rsa_read_pubkey, ecc_read_pubkey): Add arg meta_update and avoid
writing the fingerprint back to the card if not set.
(read_public_key): Also add arg meta_update.
(get_public_key): Do not pass it as true here...
(do_genkey): ... but here.

This is based on commit c03ba92576e34f791430ab1c68814ff16c81407b and
done here to ease backporting. There is no functional change.

Details

Provenance
wernerAuthored on Oct 10 2023, 4:09 PM
Parents
rGd25e96065268: scd:openpgp: Handle wrong error return code of Yubikey.
Branches
Unknown
Tags
Unknown
Tasks
T6378: keytocard: invalid value