aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/windows.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-02-20 11:30:17 +0100
committerMartin Willi <martin@revosec.ch>2014-06-04 15:53:08 +0200
commit41bb8ba5d2b47ae6b7f968610fc0b56a3f00a992 (patch)
treec1dbc02ebdf9d2e4bdbb0bc5b7432c717c15a8c2 /src/libstrongswan/utils/windows.h
parent4161ee66783b665e2a6222373cc13305dd3f8019 (diff)
downloadstrongswan-41bb8ba5d2b47ae6b7f968610fc0b56a3f00a992.tar.bz2
strongswan-41bb8ba5d2b47ae6b7f968610fc0b56a3f00a992.tar.xz
windows: Provide a getpass() implementation
Diffstat (limited to 'src/libstrongswan/utils/windows.h')
-rw-r--r--src/libstrongswan/utils/windows.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/windows.h b/src/libstrongswan/utils/windows.h
index 235586c53..c93f3fd7d 100644
--- a/src/libstrongswan/utils/windows.h
+++ b/src/libstrongswan/utils/windows.h
@@ -255,6 +255,12 @@ int dlclose(void *handle);
int socketpair(int domain, int type, int protocol, int sv[2]);
/**
+ * getpass(3) on Windows consoles
+ */
+char* getpass(const char *prompt);
+#define HAVE_GETPASS
+
+/**
* Map MSG_DONTWAIT to the reserved, but deprecated MSG_INTERRUPT
*/
#define MSG_DONTWAIT MSG_INTERRUPT