summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexander von Gernler <grunk@cvs.openbsd.org>2008-06-12 06:33:00 +0000
committerAlexander von Gernler <grunk@cvs.openbsd.org>2008-06-12 06:33:00 +0000
commit10f0a131e499c68af4adaeb65fc0bdf304496226 (patch)
tree04b786696f4936f02714bd894c31b19186b164c8 /usr.bin
parentc6c77e19bae62e20cc2631801da3634cf4a7a959 (diff)
We already mark the start of the worm, now also mark the end of the worm
in our random art drawings. ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/key.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c
index bdc71f3e117..948c3576a42 100644
--- a/usr.bin/ssh/key.c
+++ b/usr.bin/ssh/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.74 2008/06/12 05:42:46 grunk Exp $ */
+/* $OpenBSD: key.c,v 1.75 2008/06/12 06:32:59 grunk Exp $ */
/*
* read_bignum():
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -332,7 +332,7 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len, const Key *k)
* Chars to be used after each other every time the worm
* intersects with itself. Matter of taste.
*/
- char *augmentation_string = " .o+=*BOX@%&#/^S";
+ char *augmentation_string = " .o+=*BOX@%&#/^SE";
char *retval, *p;
u_char field[FLDSIZE_X][FLDSIZE_Y];
u_int i, b;
@@ -367,7 +367,10 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len, const Key *k)
input = input >> 2;
}
}
- field[FLDSIZE_X / 2][FLDSIZE_Y / 2] = len;
+
+ /* mark starting point and end point*/
+ field[FLDSIZE_X / 2][FLDSIZE_Y / 2] = len - 1;
+ field[x][y] = len;
/* fill in retval */
snprintf(retval, 10, "+--[%4s]", key_type(k));