diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-16 22:49:30 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 1999-11-16 22:49:30 +0000 |
commit | 4801565298dead76938c1aae65a3a67469c3a17b (patch) | |
tree | e1a48e7d1891f7c2b221f6b4233ca4843f4fd8b7 /usr.bin/ssh/sshconnect.c | |
parent | b999bdce7084d4bac3384205184960ec397f8c99 (diff) |
rsa key fingerprints, idea from Bjoern Groenvall <bg@sics.se>
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r-- | usr.bin/ssh/sshconnect.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c index ed3758cc68e..c5559629f2e 100644 --- a/usr.bin/ssh/sshconnect.c +++ b/usr.bin/ssh/sshconnect.c @@ -15,7 +15,7 @@ login (authentication) dialog. */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.32 1999/11/16 20:44:42 markus Exp $"); +RCSID("$Id: sshconnect.c,v 1.33 1999/11/16 22:49:28 markus Exp $"); #include <ssl/bn.h> #include "xmalloc.h" @@ -1199,10 +1199,12 @@ void ssh_login(int host_key_valid, fatal("No host key is known for %.200s and you have requested strict checking.", host); } else if (options.strict_host_key_checking == 2) { /* The default */ char prompt[1024]; + char *fp = fingerprint(host_key->e, host_key->n); snprintf(prompt, sizeof(prompt), "The authenticity of host '%.200s' can't be established.\n" - "Are you sure you want to continue connecting (yes/no)? ", - host); + "Key fingerprint is %d %s.\n" + "Are you sure you want to continue connecting (yes/no)? ", + host, BN_num_bits(host_key->n), fp); if (!read_yes_or_no(prompt, -1)) fatal("Aborted by user!\n"); } |