Unicode enabled on ssh prompts

This commit is contained in:
Manoj Ampalam 2016-10-17 14:15:02 -07:00
parent 0af8ae3965
commit dcb63461a1
2 changed files with 1 additions and 41 deletions

View File

@ -334,7 +334,7 @@ read_passphrase(const char *prompt, int flags)
/*
* Show prompt for user.
*/
_cputs(prompt);
_cputws(utf8_to_utf16(prompt));
len = retr = 0;
int bufsize = sizeof(buf);

40
sshd.c
View File

@ -1691,43 +1691,6 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s)
}
}
#ifdef WIN32_FIXME
/*
* Win32 only.
*/
/*
* This function handles exit signal from parent process.
*/
BOOL WINAPI CtrlHandlerRoutine(DWORD dwCtrlType)
{
switch( dwCtrlType )
{
case CTRL_C_EVENT:
return TRUE; // control C will be passed to shell but sshd wil not exit
case CTRL_BREAK_EVENT:
case CTRL_LOGOFF_EVENT:
break;
default:
break;
}
debug("Exit signal received...");
cleanup_exit(0);
return TRUE;
}
#endif /* WIN32_FIXME */
/*
* Main program for the daemon.
*/
@ -1768,9 +1731,6 @@ main(int ac, char **av)
AllocConsole();
SetConsoleCtrlHandler(CtrlHandlerRoutine, TRUE);
#endif /* WIN32_FIXME */