diff options
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r-- | g10/keyedit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c index 76830f0..4d5395d 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -1568,7 +1568,11 @@ keyedit_menu( const char *username, strlist_t locusr, /* Get the public key */ rc = get_pubkey_byname (NULL, NULL, username, &keyblock, &kdbhd, 1, 1); if( rc ) + { + log_error (_("key \"%s\" not found: %s\n"), username, g10_errstr (rc)); goto leave; + } + if( fix_keyblock( keyblock ) ) modified++; if( collapse_uids( &keyblock ) ) @@ -2806,7 +2810,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker, if(pk->is_revoked) { char *user=get_user_id_string_native(pk->revoked.keyid); - const char *algo = gcry_pk_algo_name (pk->revoked.algo); + const char *algo = openpgp_pk_algo_name (pk->revoked.algo); tty_printf (_("The following key was revoked on" " %s by %s key %s\n"), revokestr_from_pk(pk),algo?algo:"?",user); @@ -2824,7 +2828,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker, char *user; const char *algo; - algo = gcry_pk_algo_name (pk->revkey[i].algid); + algo = openpgp_pk_algo_name (pk->revkey[i].algid); keyid_from_fingerprint(pk->revkey[i].fpr, MAX_FINGERPRINT_LEN,r_keyid); |