summaryrefslogtreecommitdiffstats
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-07-03 08:20:42 +0200
committerDarren Tucker <dtucker@zip.com.au>2003-07-03 08:20:42 +0200
commit3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8 (patch)
tree1f7ccbd5d4628d7704fcbfc30d92645486b9760f /ssh.c
parent - markus@cvs.openbsd.org 2003/07/02 14:51:16 (diff)
downloadopenssh-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.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 0142e7fad..a86f9204f 100644
--- a/ssh.c
+++ b/ssh.c
@@ -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;