Commit 4777673d authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Rearranged the unauthenticated key fingerprint display somewhat and

added bubble babble SHA1 of keyblob (which seems to be what OpenSSH is
using at least).

Rev: src/lsh.c:1.160
parent 50d84113
......@@ -548,13 +548,23 @@ do_lsh_lookup(struct lookup_verifier *c,
1
);
struct lsh_string *babble =
lsh_string_bubblebabble(
hash_string(&crypto_sha1_algorithm,
key,
0),
1
);
if (!INTERACT_YES_OR_NO
(self->tty,
ssh_format("Received unauthenticated key for host %lS\n"
"Fingerprint: %lfS\n"
"(lsh-spki fingerprint: %lfxS)\n"
"Fingerprints:\n"
"Bubble Babble SHA1: %lfS\n"
"Keyblob MD5: %lfS\n"
"SPKI SHA1: %lfxS)\n"
"Do you trust this key? (y/n) ",
self->host->ip, fingerprint, spki_fingerprint), 0, 1))
self->host->ip, babble, fingerprint, spki_fingerprint), 0, 1))
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment