summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system/passwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace/system/passwd.h')
-rw-r--r--source4/lib/replace/system/passwd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/replace/system/passwd.h b/source4/lib/replace/system/passwd.h
index 36fca7b4f8..cad3197ccb 100644
--- a/source4/lib/replace/system/passwd.h
+++ b/source4/lib/replace/system/passwd.h
@@ -68,9 +68,13 @@
#endif
#ifdef REPLACE_GETPASS
+#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
+#define getpass(prompt) getpassphrase(prompt)
+#else
#define getpass(prompt) rep_getpass(prompt)
char *rep_getpass(const char *prompt);
#endif
+#endif
#ifndef NGROUPS_MAX
#define NGROUPS_MAX 32 /* Guess... */