From ba68a6d5f76139d925048df4656cf94c6f920d47 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 11 Apr 2000 10:39:58 +0000 Subject: [PATCH] Enable high-half characters (>=160) in usernames and passwords [originally from svn r454] --- ssh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh.c b/ssh.c index a1b0deb0..9ab57809 100644 --- a/ssh.c +++ b/ssh.c @@ -500,7 +500,7 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) { exit(0); break; default: - if (c >= ' ' && c <= '~' && pos < 40) { + if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40) { username[pos++] = c; c_write(&c, 1); } @@ -584,7 +584,7 @@ static void ssh_protocol(unsigned char *in, int inlen, int ispkt) { exit(0); break; default: - if (c >= ' ' && c <= '~' && pos < 40) + if (((c >= ' ' && c <= '~') || (c >= 160)) && pos < 40) password[pos++] = c; break; }