diff options
author | Werner Koch <wk@gnupg.org> | 1997-12-20 18:23:29 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1997-12-20 18:23:29 +0100 |
commit | cb5459aed775ed1eafcd89bb38544c6360c40e49 (patch) | |
tree | 38716e06e78ec08cf557b1df68ef001f8c9dfeb1 /g10/passphrase.c | |
parent | better prime number generator. improved ELG key generation (diff) | |
download | gnupg2-cb5459aed775ed1eafcd89bb38544c6360c40e49.tar.xz gnupg2-cb5459aed775ed1eafcd89bb38544c6360c40e49.zip |
very first release
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r-- | g10/passphrase.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/g10/passphrase.c b/g10/passphrase.c index 4e5e57bb3..a974ca9f5 100644 --- a/g10/passphrase.c +++ b/g10/passphrase.c @@ -27,6 +27,7 @@ #include "memory.h" #include "ttyio.h" #include "cipher.h" +#include "keydb.h" static int hash_passphrase( DEK *dek, char *pw ); @@ -44,8 +45,14 @@ get_passphrase_hash( u32 *keyid, char *text ) DEK *dek; if( keyid ) { + char *ustr; tty_printf("\nNeed a pass phrase to unlock the secret key!\n"); - tty_printf("KeyID: %08lX\n\n", keyid[1] ); + tty_printf("KeyID: " ); + ustr = get_user_id_string( keyid ); + tty_print_string( ustr, strlen(ustr) ); + m_free(ustr); + tty_printf("\n\n"); + } if( keyid && (p=getenv("G10PASSPHRASE")) ) { pw = m_alloc_secure(strlen(p)+1); |