]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Enable high-half characters (>=160) in usernames and passwords
authorSimon Tatham <anakin@pobox.com>
Tue, 11 Apr 2000 10:39:58 +0000 (10:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 11 Apr 2000 10:39:58 +0000 (10:39 +0000)
[originally from svn r454]

ssh.c

diff --git a/ssh.c b/ssh.c
index a1b0deb07c45ae0f4d33a35cdc2960232bd43453..9ab57809062450b6b7c8d6f0509833cc11ed5290 100644 (file)
--- 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;
            }