summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2008-06-13 04:55:10 +1000
committerDarren Tucker <dtucker@zip.com.au>2008-06-13 04:55:10 +1000
commit4b3b9773ec9d5e0de31a1a8e113488497c7113dc (patch)
tree58cf20eece0227f80271233a60b41d7215963d75 /key.c
parent987ac84a1777fe4c4ce2424f6d5b0d127083fd54 (diff)
- grunk@cvs.openbsd.org 2008/06/12 06:32:59
[key.c] 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 'key.c')
-rw-r--r--key.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/key.c b/key.c
index c1dadb52c..7a062ea81 100644
--- a/key.c
+++ b/key.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: key.c,v 1.74 2008/06/12 05:42:46 grunk Exp $ */ 1/* $OpenBSD: key.c,v 1.75 2008/06/12 06:32:59 grunk Exp $ */
2/* 2/*
3 * read_bignum(): 3 * read_bignum():
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -336,7 +336,7 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len, const Key *k)
336 * Chars to be used after each other every time the worm 336 * Chars to be used after each other every time the worm
337 * intersects with itself. Matter of taste. 337 * intersects with itself. Matter of taste.
338 */ 338 */
339 char *augmentation_string = " .o+=*BOX@%&#/^S"; 339 char *augmentation_string = " .o+=*BOX@%&#/^SE";
340 char *retval, *p; 340 char *retval, *p;
341 u_char field[FLDSIZE_X][FLDSIZE_Y]; 341 u_char field[FLDSIZE_X][FLDSIZE_Y];
342 u_int i, b; 342 u_int i, b;
@@ -371,7 +371,10 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len, const Key *k)
371 input = input >> 2; 371 input = input >> 2;
372 } 372 }
373 } 373 }
374 field[FLDSIZE_X / 2][FLDSIZE_Y / 2] = len; 374
375 /* mark starting point and end point*/
376 field[FLDSIZE_X / 2][FLDSIZE_Y / 2] = len - 1;
377 field[x][y] = len;
375 378
376 /* fill in retval */ 379 /* fill in retval */
377 snprintf(retval, 10, "+--[%4s]", key_type(k)); 380 snprintf(retval, 10, "+--[%4s]", key_type(k));