diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-22 17:01:12 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-11-22 17:01:12 +0000 |
commit | 7198cc20a3bc161d6206f0f2cd044aeafaf80da6 (patch) | |
tree | 5ebdc3feade7f63dcad3b99495758304f3c9db1b /passwd | |
parent | a77d640a88b5629e596e3de138256f7569f95279 (diff) | |
download | libapr-7198cc20a3bc161d6206f0f2cd044aeafaf80da6.tar.gz |
Getpass on Solaris has an 8 character limit, which makes it less than
useful. By switching to getpassphrase, we get a 256 character limit.
Submitted by: Florin Iucha <florin@iucha.net>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r-- | passwd/apr_getpass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index 78bab6623..72c67775e 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -253,7 +253,11 @@ static char *getpass(const char *prompt) APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, apr_size_t *bufsiz) { +#ifdef HAVE_GETPASSPHRASE + char *pw_got = getpassphrase(prompt); +#else char *pw_got = getpass(prompt); +#endif if (!pw_got) return APR_EINVAL; apr_cpystrn(pwbuf, pw_got, *bufsiz); |