projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb093ca
)
Enable high-half characters (>=160) in usernames and passwords
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 11 Apr 2000 10:39:58 +0000
(10:39 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 11 Apr 2000 10:39:58 +0000
(10:39 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@454
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
a1b0deb
..
9ab5780
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;
}