diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | key.c | 10 |
2 files changed, 10 insertions, 6 deletions
@@ -64,6 +64,10 @@ | |||
64 | [sshconnect.c] | 64 | [sshconnect.c] |
65 | Make ssh print the random art also when ssh'ing to a host using IP only. | 65 | Make ssh print the random art also when ssh'ing to a host using IP only. |
66 | spotted by naddy@, ok and help djm@ dtucker@ | 66 | spotted by naddy@, ok and help djm@ dtucker@ |
67 | - otto@cvs.openbsd.org 2008/06/12 00:13:13 | ||
68 | [key.c] | ||
69 | use an odd number of rows and columns and a separate start marker, looks | ||
70 | better; ok grunk@ | ||
67 | 71 | ||
68 | 20080611 | 72 | 20080611 |
69 | - (djm) [channels.c configure.ac] | 73 | - (djm) [channels.c configure.ac] |
@@ -4226,4 +4230,4 @@ | |||
4226 | OpenServer 6 and add osr5bigcrypt support so when someone migrates | 4230 | OpenServer 6 and add osr5bigcrypt support so when someone migrates |
4227 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ | 4231 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ |
4228 | 4232 | ||
4229 | $Id: ChangeLog,v 1.4975 2008/06/12 18:47:34 dtucker Exp $ | 4233 | $Id: ChangeLog,v 1.4976 2008/06/12 18:48:11 dtucker Exp $ |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.c,v 1.72 2008/06/11 23:51:57 grunk Exp $ */ | 1 | /* $OpenBSD: key.c,v 1.73 2008/06/12 00:13:13 otto 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 |
@@ -319,8 +319,8 @@ key_fingerprint_bubblebabble(u_char *dgst_raw, u_int dgst_raw_len) | |||
319 | * Graphs are not unambiguous, because circles in graphs can be | 319 | * Graphs are not unambiguous, because circles in graphs can be |
320 | * walked in either direction. | 320 | * walked in either direction. |
321 | */ | 321 | */ |
322 | #define FLDSIZE_Y 8 | 322 | #define FLDSIZE_Y (8 + 1) |
323 | #define FLDSIZE_X (FLDSIZE_Y * 2) | 323 | #define FLDSIZE_X (8 * 2 + 1) |
324 | static char * | 324 | static char * |
325 | key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len) | 325 | key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len) |
326 | { | 326 | { |
@@ -328,7 +328,7 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len) | |||
328 | * Chars to be used after each other every time the worm | 328 | * Chars to be used after each other every time the worm |
329 | * intersects with itself. Matter of taste. | 329 | * intersects with itself. Matter of taste. |
330 | */ | 330 | */ |
331 | char *augmentation_string = " .o+=*BOX@%&#/^"; | 331 | char *augmentation_string = " .o+=*BOX@%&#/^S"; |
332 | char *retval, *p; | 332 | char *retval, *p; |
333 | u_char field[FLDSIZE_X][FLDSIZE_Y]; | 333 | u_char field[FLDSIZE_X][FLDSIZE_Y]; |
334 | u_int i, b; | 334 | u_int i, b; |
@@ -341,7 +341,6 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len) | |||
341 | memset(field, 0, FLDSIZE_X * FLDSIZE_Y * sizeof(char)); | 341 | memset(field, 0, FLDSIZE_X * FLDSIZE_Y * sizeof(char)); |
342 | x = FLDSIZE_X / 2; | 342 | x = FLDSIZE_X / 2; |
343 | y = FLDSIZE_Y / 2; | 343 | y = FLDSIZE_Y / 2; |
344 | field[x][y] = 1; | ||
345 | 344 | ||
346 | /* process raw key */ | 345 | /* process raw key */ |
347 | for (i = 0; i < dgst_raw_len; i++) { | 346 | for (i = 0; i < dgst_raw_len; i++) { |
@@ -364,6 +363,7 @@ key_fingerprint_randomart(u_char *dgst_raw, u_int dgst_raw_len) | |||
364 | input = input >> 2; | 363 | input = input >> 2; |
365 | } | 364 | } |
366 | } | 365 | } |
366 | field[FLDSIZE_X / 2][FLDSIZE_Y / 2] = len; | ||
367 | 367 | ||
368 | /* fill in retval */ | 368 | /* fill in retval */ |
369 | p = retval; | 369 | p = retval; |