mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Re-implemented GPG's --passwd command and improved it.
This commit is contained in:
parent
c212133918
commit
02e4c3cb7e
18 changed files with 696 additions and 571 deletions
|
@ -675,7 +675,7 @@ passphrase_to_dek (u32 *keyid, int pubkey_algo,
|
|||
}
|
||||
|
||||
|
||||
/* Return an allocated utf-8 string describing the key PK. IF ESCAPED
|
||||
/* Return an allocated utf-8 string describing the key PK. If ESCAPED
|
||||
is true spaces and control characters are percent or plus escaped.
|
||||
MODE 0 is for the common prompt, MODE 1 for the import prompt. */
|
||||
char *
|
||||
|
@ -696,9 +696,9 @@ gpg_format_keydesc (PKT_public_key *pk, int mode, int escaped)
|
|||
|
||||
orig_codeset = i18n_switchto_utf8 ();
|
||||
|
||||
if (pk->main_keyid[2] && pk->main_keyid[3]
|
||||
&& pk->keyid[0] != pk->main_keyid[2]
|
||||
&& pk->keyid[1] != pk->main_keyid[3])
|
||||
if (pk->main_keyid[0] && pk->main_keyid[1]
|
||||
&& pk->keyid[0] != pk->main_keyid[0]
|
||||
&& pk->keyid[1] != pk->main_keyid[1])
|
||||
maink = xtryasprintf (_(" (main key ID %s)"), keystr (pk->main_keyid));
|
||||
else
|
||||
maink = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue