File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 20
20
#include "memzero.h"
21
21
22
22
23
+ /*
24
+ * Maximum password length
25
+ *
26
+ * Consider that there is also limit in PAM (PAM_MAX_RESP_SIZE)
27
+ * currently set to 512.
28
+ */
29
+ #ifndef PASS_MAX
30
+ # define PASS_MAX (BUFSIZ - 1)
31
+ #endif
32
+
33
+
23
34
// Similar to getpass(3), but free of its problems.
24
35
#define agetpass (prompt ) agetpass_(prompt, RPP_REQUIRE_TTY)
25
36
#define agetpass_stdin () agetpass_(NULL, RPP_STDIN)
Original file line number Diff line number Diff line change 203
203
# define shadow_getenv (name ) getenv(name)
204
204
#endif
205
205
206
- /*
207
- * Maximum password length
208
- *
209
- * Consider that there is also limit in PAM (PAM_MAX_RESP_SIZE)
210
- * currently set to 512.
211
- */
212
- #if !defined(PASS_MAX )
213
- #define PASS_MAX BUFSIZ - 1
214
- #endif
215
-
216
206
#endif /* _DEFINES_H_ */
You can’t perform that action at this time.
0 commit comments