diff options
| author | Werner Koch <[email protected]> | 2023-05-08 11:10:47 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2023-05-08 11:10:47 +0000 |
| commit | ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f (patch) | |
| tree | 7d71b53294739b6880d8a86cc11b8fdb07cb3e2c /g10/import.c | |
| parent | kbx: For non-Windows use 64k buffers by default instead of 128k. (diff) | |
| download | gnupg-ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f.tar.gz gnupg-ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f.zip | |
gpg: Print a warning if no more encryption subkey was left over.
* g10/keyedit.c (no_usable_encr_subkeys_warning): New.
(keyedit_menu): Call it after running an expire command.
* g10/import.c (import_one_real): Call it in the show_key case.
--
Diffstat (limited to 'g10/import.c')
| -rw-r--r-- | g10/import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c index 5e44942e7..987fef3cd 100644 --- a/g10/import.c +++ b/g10/import.c @@ -2136,6 +2136,7 @@ import_one_real (ctrl_t ctrl, list_keyblock_direct (ctrl, keyblock, from_sk, 0, opt.fingerprint || opt.with_fingerprint, 1); es_fflush (es_stdout); + no_usable_encr_subkeys_warning (keyblock); } /* Write the keyblock to the output and do not actually import. */ |
