summaryrefslogtreecommitdiffstats
path: root/g10/passphrase.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-20 18:23:29 +0100
committerWerner Koch <wk@gnupg.org>1997-12-20 18:23:29 +0100
commitcb5459aed775ed1eafcd89bb38544c6360c40e49 (patch)
tree38716e06e78ec08cf557b1df68ef001f8c9dfeb1 /g10/passphrase.c
parentbetter prime number generator. improved ELG key generation (diff)
downloadgnupg2-cb5459aed775ed1eafcd89bb38544c6360c40e49.tar.xz
gnupg2-cb5459aed775ed1eafcd89bb38544c6360c40e49.zip
very first release
Diffstat (limited to 'g10/passphrase.c')
-rw-r--r--g10/passphrase.c9
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);