diff options
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); |