diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:40:35 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-06-13 04:40:35 +1000 |
commit | 9c16ac926376ad87084ae78bac44a813ae5db21f (patch) | |
tree | 438b335d17d91d45c9c77fba9339816b2bf2dbf9 /readconf.c | |
parent | 1199673393661ceafc3141e5df43c53e9acdba2f (diff) |
- grunk@cvs.openbsd.org 2008/06/11 21:01:35
[ssh_config.5 key.h readconf.c readconf.h ssh-keygen.1 ssh-keygen.c key.c
sshconnect.c]
Introduce SSH Fingerprint ASCII Visualization, a technique inspired by the
graphical hash visualization schemes known as "random art", and by
Dan Kaminsky's musings on the subject during a BlackOp talk at the
23C3 in Berlin.
Scientific publication (original paper):
"Hash Visualization: a New Technique to improve Real-World Security",
Perrig A. and Song D., 1999, International Workshop on Cryptographic
Techniques and E-Commerce (CrypTEC '99)
http://sparrow.ece.cmu.edu/~adrian/projects/validation/validation.pdf
The algorithm used here is a worm crawling over a discrete plane,
leaving a trace (augmenting the field) everywhere it goes.
Movement is taken from dgst_raw 2bit-wise. Bumping into walls
makes the respective movement vector be ignored for this turn,
thus switching to the other color of the chessboard.
Graphs are not unambiguous for now, because circles in graphs can be
walked in either direction.
discussions with several people,
help, corrections and ok markus@ djm@
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 3ddb4d392..1d61145c4 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.165 2008/01/19 23:09:49 djm Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.166 2008/06/11 21:01:35 grunk Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -452,7 +452,23 @@ parse_flag: | |||
452 | 452 | ||
453 | case oCheckHostIP: | 453 | case oCheckHostIP: |
454 | intptr = &options->check_host_ip; | 454 | intptr = &options->check_host_ip; |
455 | goto parse_flag; | 455 | arg = strdelim(&s); |
456 | if (!arg || *arg == '\0') | ||
457 | fatal("%.200s line %d: Missing CheckHostIP argument.", | ||
458 | filename, linenum); | ||
459 | value = 0; /* To avoid compiler warning... */ | ||
460 | if (strcmp(arg, "yes") == 0 || strcmp(arg, "true") == 0) | ||
461 | value = SSHCTL_CHECKHOSTIP_YES; | ||
462 | else if (strcmp(arg, "no") == 0 || strcmp(arg, "false") == 0) | ||
463 | value = SSHCTL_CHECKHOSTIP_NO; | ||
464 | else if (strcmp(arg, "fingerprint") == 0) | ||
465 | value = SSHCTL_CHECKHOSTIP_FPR; | ||
466 | else | ||
467 | fatal("%.200s line %d: Bad CheckHostIP argument.", | ||
468 | filename, linenum); | ||
469 | if (*activep && *intptr == -1) | ||
470 | *intptr = value; | ||
471 | break; | ||
456 | 472 | ||
457 | case oVerifyHostKeyDNS: | 473 | case oVerifyHostKeyDNS: |
458 | intptr = &options->verify_host_key_dns; | 474 | intptr = &options->verify_host_key_dns; |