diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 16:20:42 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 16:20:42 +1000 |
commit | 3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8 (patch) | |
tree | 1f7ccbd5d4628d7704fcbfc30d92645486b9760f /ssh.c | |
parent | 46471c9a81bdd0d797149a20364645bc6ffcf2cc (diff) |
- markus@cvs.openbsd.org 2003/07/02 20:37:48
[ssh.c]
convert hostkeyalias to lowercase, otherwise uppercase aliases will
not match at all; ok henning@
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: ssh.c,v 1.194 2003/06/12 19:12:03 markus Exp $"); | 43 | RCSID("$OpenBSD: ssh.c,v 1.195 2003/07/02 20:37:48 markus Exp $"); |
44 | 44 | ||
45 | #include <openssl/evp.h> | 45 | #include <openssl/evp.h> |
46 | #include <openssl/err.h> | 46 | #include <openssl/err.h> |
@@ -597,6 +597,13 @@ again: | |||
597 | if (options.hostname != NULL) | 597 | if (options.hostname != NULL) |
598 | host = options.hostname; | 598 | host = options.hostname; |
599 | 599 | ||
600 | /* force lowercase for hostkey matching */ | ||
601 | if (options.host_key_alias != NULL) { | ||
602 | for (p = options.host_key_alias; *p; p++) | ||
603 | if (isupper(*p)) | ||
604 | *p = tolower(*p); | ||
605 | } | ||
606 | |||
600 | if (options.proxy_command != NULL && | 607 | if (options.proxy_command != NULL && |
601 | strcmp(options.proxy_command, "none") == 0) | 608 | strcmp(options.proxy_command, "none") == 0) |
602 | options.proxy_command = NULL; | 609 | options.proxy_command = NULL; |