summaryrefslogtreecommitdiff
path: root/passwd/apr_getpass.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-02-12 21:59:01 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-02-12 21:59:01 +0000
commit1705c54139acbdb170ea8d0aaea9fa01118285a6 (patch)
tree364f0b98df34e61da373da2f8213185b25fe3325 /passwd/apr_getpass.c
parent83c262d24e0a82589890e291d2eae9f8aa4716ff (diff)
downloadapr-1705c54139acbdb170ea8d0aaea9fa01118285a6.tar.gz
More safe header exclusions from Mladen Turk <mturk@mappingsoft.com>
for the WinCE port. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd/apr_getpass.c')
-rw-r--r--passwd/apr_getpass.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c
index c6dfb5c5b..588724cef 100644
--- a/passwd/apr_getpass.c
+++ b/passwd/apr_getpass.c
@@ -61,8 +61,12 @@
#include "apr_strings.h"
#include "apr_lib.h"
#include "apr_errno.h"
+#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#if APR_HAVE_ERRNO_H
#include <errno.h>
+#endif
#if APR_HAVE_UNISTD_H
#include <unistd.h>
@@ -165,6 +169,13 @@ static char *getpass(const char *prompt)
static char *getpass(const char *prompt)
{
+/* WCE lacks console. So the getpass is unsuported
+ * The only way is to use the GUI so the getpass should be implemented
+ * on per-application basis.
+*/
+#ifdef _WIN32_WCE
+ return NULL;
+#else
static char password[MAX_STRING_LEN];
int n = 0;
@@ -190,6 +201,7 @@ static char *getpass(const char *prompt)
}
return (char *) &password;
+#endif
}
#endif /* no getchar or _getch */