Use getpassphrase on Solaris/illumos
PATCH 1/1 Use getpassphrase on Solaris/illumos
Signature · 5 lines
-- С уважением, Александр Пыхалов, программист отдела телекоммуникационной инфраструктуры управления информационно-коммуникационной инфраструктуры ЮФУ
From 971d1d5e66ba714fc8f74b8da0672e7da47dc557 Mon Sep 17 00:00:00 2001
From: Alexander Pyhalov <[email protected]...>
Date: Fri, 9 Dec 2016 13:16:01 +0300
Subject: [PATCH] Use getpassphrase on Solaris/illumos
--- src/openvpn/console_builtin.c | 5 +++++ 1 file changed, 5 insertions(+)
src/openvpn/console_builtin.c +5 -0
@@ -214,7 +214,12 @@ static bool get_console_input (const char *prompt, const bool echo, char *input, }close_tty (fp); }else { +#ifdef __sun +/* On Solaris/illumos getpass() returns up to 8 symbols */ +char *gp =getpassphrase (prompt); +#else char *gp =getpass (prompt); +#endif if (gp) {strncpynt (input, gp, capacity);
Signature · 1 line
2.9.2