This is a patch against release/2.3 branch.
--
С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ
>From 4dfe7d9740b2a96a8dbd5f74d43408582ebc9403 Mon Sep 17 00:00:00 2001
From: Alexander Pyhalov <apyha...@gmail.com>
Date: Fri, 9 Dec 2016 13:36:50 +0300
Subject: [PATCH] Use getpassphrase on Solaris/illumos
---
src/openvpn/console.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/openvpn/console.c b/src/openvpn/console.c
index 86331a1..c0f4c8a 100644
--- a/src/openvpn/console.c
+++ b/src/openvpn/console.c
@@ -241,7 +241,12 @@ get_console_input (const char *prompt, const bool echo, char *input, const int c
}
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);
--
2.9.2
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel