From ef2c3d50fa8cbc2413645a56d9d060c0ec31e62f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 8 May 2023 13:10:47 +0200 Subject: 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. -- --- g10/import.c | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/import.c') 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. */ -- cgit v1.2.3