X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=console.c;h=e49eaa099a90b7395542d8b5365e077341c93fea;hb=afbd7779e49eaf5f36a8cc94a6ccde1db6d0ba16;hp=1078986f7cbb349c9fde373e80104f2ad1336575;hpb=43c528f78068d0bd25ccc47fa4ba08acfe48cddb;p=PuTTY.git diff --git a/console.c b/console.c index 1078986f..e49eaa09 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';