~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add infrastructure for supporting multiple hashes in key exchange.
[sgt/putty]
/
windows
/
winplink.c
diff --git
a/windows/winplink.c
b/windows/winplink.c
index
66af541
..
a67a237
100644
(file)
--- a/
windows/winplink.c
+++ b/
windows/winplink.c
@@
-12,7
+12,7
@@
#include "storage.h"
#include "tree234.h"
#include "storage.h"
#include "tree234.h"
-#define WM_AGENT_CALLBACK (WM_
XUSER
+ 4)
+#define WM_AGENT_CALLBACK (WM_
APP
+ 4)
#define MAX_STDIN_BACKLOG 4096
#define MAX_STDIN_BACKLOG 4096
@@
-94,6
+94,8
@@
void ldisc_update(void *frontend, int echo, int edit)
SetConsoleMode(inhandle, mode);
}
SetConsoleMode(inhandle, mode);
}
+char *get_ttymode(void *frontend, const char *mode) { return NULL; }
+
struct input_data {
DWORD len;
char buffer[4096];
struct input_data {
DWORD len;
char buffer[4096];
@@
-596,16
+598,16
@@
int main(int argc, char **argv)
inhandle = GetStdHandle(STD_INPUT_HANDLE);
outhandle = GetStdHandle(STD_OUTPUT_HANDLE);
errhandle = GetStdHandle(STD_ERROR_HANDLE);
inhandle = GetStdHandle(STD_INPUT_HANDLE);
outhandle = GetStdHandle(STD_OUTPUT_HANDLE);
errhandle = GetStdHandle(STD_ERROR_HANDLE);
- GetConsoleMode(inhandle, &orig_console_mode);
- SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT);
-
- main_thread_id = GetCurrentThreadId();
-
/*
* Turn off ECHO and LINE input modes. We don't care if this
* call fails, because we know we aren't necessarily running in
* a console.
*/
/*
* Turn off ECHO and LINE input modes. We don't care if this
* call fails, because we know we aren't necessarily running in
* a console.
*/
+ GetConsoleMode(inhandle, &orig_console_mode);
+ SetConsoleMode(inhandle, ENABLE_PROCESSED_INPUT);
+
+ main_thread_id = GetCurrentThreadId();
+
handles[0] = netevent;
handles[1] = stdinevent;
handles[2] = stdoutevent;
handles[0] = netevent;
handles[1] = stdinevent;
handles[2] = stdoutevent;