=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.c,v retrieving revision 1.194 retrieving revision 1.195 diff -u -r1.194 -r1.195 --- src/usr.bin/ssh/ssh.c 2003/06/12 19:12:03 1.194 +++ src/usr.bin/ssh/ssh.c 2003/07/02 20:37:48 1.195 @@ -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 #include @@ -585,6 +585,13 @@ 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)