aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-10-28 22:09:09 +0000
committerDavid Shaw <[email protected]>2004-10-28 22:09:09 +0000
commit6ab8378c00828a4ec6919afc3710a75e93ba0502 (patch)
tree2aeb5039af192500983f8a70e6db0845d3f87de0 /g10/keyedit.c
parent* DETAILS: Document SIG_SUBPACKET status tag. (diff)
downloadgnupg-6ab8378c00828a4ec6919afc3710a75e93ba0502.tar.gz
gnupg-6ab8378c00828a4ec6919afc3710a75e93ba0502.zip
* skclist.c (build_sk_list): Don't need to warn about PGP-generated
Elgamal signing keys since we no longer support any Elgamal signing keys. * sign.c (sign_file, clearsign_file): Use "writing to" instead of "writing to file" to match other strings. * pkclist.c (check_signatures_trust): Fix typo. Noted by Moray Allan. This is Debian bug #278708. * passphrase.c (ask_passphrase, passphrase_to_dek): "password" -> "passphrase". * keyedit.c (show_key_with_all_names): Show designated revoker as part of translatable string.
Diffstat (limited to 'g10/keyedit.c')
-rw-r--r--g10/keyedit.c50
1 files changed, 28 insertions, 22 deletions
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 637b84015..f1ececba9 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -1309,7 +1309,7 @@ keyedit_menu( const char *username, STRLIST locusr,
if ( opt.command_fd != -1 )
;
- else if( opt.batch && !have_commands )
+ else if( opt.batch && !have_commands )
{
log_error(_("can't do this in batch mode\n"));
goto leave;
@@ -2226,29 +2226,35 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
primary=pk;
}
- if(with_revoker) {
+ if(with_revoker)
+ {
if( !pk->revkey && pk->numrevkeys )
- BUG();
+ BUG();
else
- for(i=0;i<pk->numrevkeys;i++) {
- u32 r_keyid[2];
- char *user;
- const char *algo=
- pubkey_algo_to_string(pk->revkey[i].algid);
-
- keyid_from_fingerprint(pk->revkey[i].fpr,
- MAX_FINGERPRINT_LEN,r_keyid);
-
- user=get_user_id_string (r_keyid);
- tty_printf (_("This key may be revoked by %s key "),
- algo?algo:"?");
- tty_print_utf8_string (user, strlen (user));
- if ((pk->revkey[i].class&0x40))
- tty_printf (_(" (sensitive)"));
- tty_printf ("\n");
- m_free(user);
- }
- }
+ for(i=0;i<pk->numrevkeys;i++)
+ {
+ u32 r_keyid[2];
+ char *user;
+ const char *algo=
+ pubkey_algo_to_string(pk->revkey[i].algid);
+
+ keyid_from_fingerprint(pk->revkey[i].fpr,
+ MAX_FINGERPRINT_LEN,r_keyid);
+
+ user=get_user_id_string_native(r_keyid);
+ tty_printf(_("This key may be revoked by %s key %s"),
+ algo?algo:"?",user);
+
+ if(pk->revkey[i].class&0x40)
+ {
+ tty_printf(" ");
+ tty_printf(_("(sensitive)"));
+ }
+
+ tty_printf ("\n");
+ m_free(user);
+ }
+ }
keyid_from_pk(pk,NULL);
tty_printf("%s%c %4u%c/%s ",