X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/361b81c14203df254e2b0148e00945acfc922883..b9d7bcadee831e9b59fb785f2464a5fc1897bd1a:/console.c diff --git a/console.c b/console.c index 1078986f..85f99dc2 100644 --- a/console.c +++ b/console.c @@ -261,27 +261,12 @@ void logevent(char *string) { } -char *console_password = NULL; - int console_get_line(const char *prompt, char *str, int maxlen, int is_pw) { HANDLE hin, hout; DWORD savemode, newmode, i; - if (is_pw && console_password) { - static int tried_once = 0; - - if (tried_once) { - return 0; - } else { - strncpy(str, console_password, maxlen); - str[maxlen - 1] = '\0'; - tried_once = 1; - return 1; - } - } - if (console_batch_mode) { if (maxlen > 0) str[0] = '\0'; @@ -318,3 +303,11 @@ int console_get_line(const char *prompt, char *str, } return 1; } + +void frontend_keypress(void *handle) +{ + /* + * This is nothing but a stub, in console code. + */ + return; +}