diff options
author | Werner Koch <[email protected]> | 2020-02-10 13:12:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-02-10 13:12:36 +0000 |
commit | 438b7881ba0bf4e5fd8e5d5212601e5691f2aafe (patch) | |
tree | 8b4110595d20af3157ab2ce29796127118a019ec /common/iobuf.c | |
parent | scd:openpgp: Let the genkey function also accept a full keyref. (diff) | |
download | gnupg-438b7881ba0bf4e5fd8e5d5212601e5691f2aafe.tar.gz gnupg-438b7881ba0bf4e5fd8e5d5212601e5691f2aafe.zip |
card: Remove command "key-attr" and hack on "generate".
* tools/gpg-card.h (struct key_attr): Remove.
(struct key_info_s): Remove key_attr. Add keyalgo and keyalgo_id.
* tools/card-call-scd.c (learn_status_cb): Rework the key-attr info.
* tools/gpg-card.c (list_one_kinfo): Always show the algorithm; if
there is no key show the key attributes instead.
(list_openpgp): Do not print the "Key attributes".
(generate_key): Factor the repalce key pormpt out to ...
(ask_replace_keys): new.
(generate_openpgp): Rename to generate_all_openpgp_card_keys and add
an algo parameter.
(generate_generic): Rename to generate_key. Prepare generation of a
single OpenPGP key.
(cmd_generate): Revamp.
(ask_card_rsa_keysize): Remove.
(ask_card_keyattr): Remove.
(do_change_keyattr): Remove.
(cmd_keyattr): Remove.
(enum cmdids): Remove cmdKEYATTR.
(cmds): Ditto.
(dispatch_command): Ditto.
(interactive_loop): Ditto.
--
This change shows the key attributes of an OpenPGP card instead of the
key's algorithm if no key exists. It also remove the key-attr command
because for uniformity it is better to do this directly in
scd/app-openpgp.c At least for this new gpg-card tool.
There a couple of other changes but to the generate command but they
are not yet ready.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/iobuf.c')
0 files changed, 0 insertions, 0 deletions