mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Report failed generation of subkey pair via status interface
* g10/keygen.c (generate_subkeypair): On error, write error and "key not created" message to status interface. -- This change allows users of the status/command interface to detect errors when adding a subkey to a key. Similar status messages are output by do_generate_keypair. GnuPG-bug-id: 5771
This commit is contained in:
parent
19b1a28621
commit
b66854ac93
@ -5976,7 +5976,11 @@ generate_subkeypair (ctrl_t ctrl, kbnode_t keyblock, const char *algostr,
|
||||
xfree (cache_nonce);
|
||||
xfree (passwd_nonce);
|
||||
if (err)
|
||||
log_error (_("Key generation failed: %s\n"), gpg_strerror (err) );
|
||||
{
|
||||
log_error (_("Key generation failed: %s\n"), gpg_strerror (err) );
|
||||
write_status_error (cardkey? "card_key_generate":"key_generate", err);
|
||||
print_status_key_not_created ( NULL );
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user