mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
gpg: Request keygrip of key to add via command interface
* g10/keygen.c (ask_algo): Request keygrip via cpr_get. * doc/help.txt (gpg.keygen.keygrip): New help text. -- This change makes it possible to add an existing (sub)key to another key via the status/command interface. GnuPG-bug-id: 5771 (cherry picked from commit 19b1a28621c614b81f596e363b1ce49dd9fae115)
This commit is contained in:
parent
c1489ca0e1
commit
ee8f1c10a7
@ -134,6 +134,15 @@ Please consult your security expert first.
|
|||||||
.
|
.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.gpg.keygen.keygrip
|
||||||
|
Enter the keygrip of the key to add.
|
||||||
|
|
||||||
|
The keygrip is a string of 40 hex digits that identifies a key. It
|
||||||
|
must belong to a secret key or a secret subkey stored in your keyring.
|
||||||
|
.
|
||||||
|
|
||||||
|
|
||||||
.gpg.keygen.flags
|
.gpg.keygen.flags
|
||||||
Toggle the capabilities of the key.
|
Toggle the capabilities of the key.
|
||||||
|
|
||||||
|
@ -2066,8 +2066,8 @@ ask_algo (ctrl_t ctrl, int addmode, int *r_subkey_algo, unsigned int *r_usage,
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
xfree (answer);
|
xfree (answer);
|
||||||
answer = tty_get (_("Enter the keygrip: "));
|
answer = cpr_get ("keygen.keygrip", _("Enter the keygrip: "));
|
||||||
tty_kill_prompt ();
|
cpr_kill_prompt ();
|
||||||
trim_spaces (answer);
|
trim_spaces (answer);
|
||||||
if (!*answer)
|
if (!*answer)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user