summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--key.c9
2 files changed, 18 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b23311f6d..12471ba3b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -97,6 +97,17 @@
97 - djm@cvs.openbsd.org 2008/06/12 05:32:30 97 - djm@cvs.openbsd.org 2008/06/12 05:32:30
98 [mux.c] 98 [mux.c]
99 some more TODO for me 99 some more TODO for me
100 - grunk@cvs.openbsd.org 2008/06/12 05:42:46
101 [key.c]
102 supply the key type (rsa1, rsa, dsa) as a caption in the frame of the
103 random art. while there, stress the fact that the field base should at
104 least be 8 characters for the pictures to make sense.
105 comment and ok djm@
106 - grunk@cvs.openbsd.org 2008/06/12 06:32:59
107 [key.c]
108 We already mark the start of the worm, now also mark the end of the worm
109 in our random art drawings.
110 ok djm@
100 111
10120080611 11220080611
102 - (djm) [channels.c configure.ac] 113 - (djm) [channels.c configure.ac]
@@ -4259,4 +4270,4 @@
4259 OpenServer 6 and add osr5bigcrypt support so when someone migrates 4270 OpenServer 6 and add osr5bigcrypt support so when someone migrates
4260 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 4271 passwords between UnixWare and OpenServer they will still work. OK dtucker@
4261 4272
4262$Id: ChangeLog,v 1.4982 2008/06/12 18:54:05 dtucker Exp $ 4273$Id: ChangeLog,v 1.4983 2008/06/12 18:55:10 dtucker Exp $
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));