1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 210ba98355
scd:openpgp: Allow auto-changing of the key attributes in genkey.
* scd/app-openpgp.c (struct app_local_s): Add field keyalgo.
(parse_algorithm_attribute): Store the new keyalgo field.
(change_keyattr): Change info message.
(change_keyattr_from_string): Rewrite to also accept a keyref and a
keyalgo string.
(do_genkey): Change the keyattr if a keyalgo string is given.
* scd/command.c (cmd_genkey): Add option --algo.
--

Having this feature makes it easier to use OpenPGP cards in a similar
way to other cards.  Note that the explicit changing via SETATTR is
still supported.

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit d7d75da50543bc7259c5a6e6367b58cbca7f1b7b)
(cherry picked from commit b349adc5c0d00d2fc405a45bd078f1580b5610cc)
2023-01-13 14:54:23 +01:00
..
2015-10-28 10:20:17 +01:00
2021-10-06 11:06:01 +02:00
2015-11-17 12:50:22 +01:00
2023-01-11 10:04:08 +01:00
2017-04-28 10:06:33 +09:00
2022-11-22 10:37:15 +09:00
2021-08-27 17:22:25 +09:00
2019-04-16 13:27:44 +09:00
2022-08-15 12:14:44 +02:00
2016-03-02 14:27:30 +01:00
2017-02-21 13:11:46 -05:00
2020-11-09 11:53:33 +01:00
2022-11-22 10:38:38 +09:00
2022-11-22 10:37:15 +09:00
2022-08-02 12:25:23 +02:00
2022-06-20 15:54:29 +02:00
2022-08-02 12:25:23 +02:00
2022-08-02 12:25:23 +02:00
2022-02-07 18:22:30 +01:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.