diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 08:20:42 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-07-03 08:20:42 +0200 |
commit | 3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8 (patch) | |
tree | 1f7ccbd5d4628d7704fcbfc30d92645486b9760f /ssh.c | |
parent | - markus@cvs.openbsd.org 2003/07/02 14:51:16 (diff) | |
download | openssh-3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8.tar.xz openssh-3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8.zip |
- 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 '')
-rw-r--r-- | ssh.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh.c,v 1.194 2003/06/12 19:12:03 markus Exp $"); +RCSID("$OpenBSD: ssh.c,v 1.195 2003/07/02 20:37:48 markus Exp $"); #include <openssl/evp.h> #include <openssl/err.h> @@ -597,6 +597,13 @@ again: if (options.hostname != NULL) host = options.hostname; + /* force lowercase for hostkey matching */ + if (options.host_key_alias != NULL) { + for (p = options.host_key_alias; *p; p++) + if (isupper(*p)) + *p = tolower(*p); + } + if (options.proxy_command != NULL && strcmp(options.proxy_command, "none") == 0) options.proxy_command = NULL; |