summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-07-03 16:20:42 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-07-03 16:20:42 +1000
commit3f521e21c0b94cd0ac4752d60a9f9b4dfa9bf3f8 (patch)
tree1f7ccbd5d4628d7704fcbfc30d92645486b9760f /ssh.c
parent46471c9a81bdd0d797149a20364645bc6ffcf2cc (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.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 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: ssh.c,v 1.194 2003/06/12 19:12:03 markus Exp $"); 43RCSID("$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;