mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
- 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@
This commit is contained in:
parent
46471c9a81
commit
3f521e21c0
@ -20,6 +20,10 @@
|
|||||||
(re)add socks5 suppport to -D; ok djm@
|
(re)add socks5 suppport to -D; ok djm@
|
||||||
now ssh(1) can act both as a socks 4 and socks 5 server and
|
now ssh(1) can act both as a socks 4 and socks 5 server and
|
||||||
dynamically forward ports.
|
dynamically forward ports.
|
||||||
|
- 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@
|
||||||
|
|
||||||
20030630
|
20030630
|
||||||
- (djm) Search for support functions necessary to build our
|
- (djm) Search for support functions necessary to build our
|
||||||
@ -640,4 +644,4 @@
|
|||||||
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
- Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
|
||||||
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
Report from murple@murple.net, diagnosis from dtucker@zip.com.au
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2840 2003/07/03 03:55:19 dtucker Exp $
|
$Id: ChangeLog,v 1.2841 2003/07/03 06:20:42 dtucker Exp $
|
||||||
|
9
ssh.c
9
ssh.c
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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/evp.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
@ -597,6 +597,13 @@ again:
|
|||||||
if (options.hostname != NULL)
|
if (options.hostname != NULL)
|
||||||
host = options.hostname;
|
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 &&
|
if (options.proxy_command != NULL &&
|
||||||
strcmp(options.proxy_command, "none") == 0)
|
strcmp(options.proxy_command, "none") == 0)
|
||||||
options.proxy_command = NULL;
|
options.proxy_command = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user