File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 13
13
#include <limits.h>
14
14
#include <readpassphrase.h>
15
15
#include <stddef.h>
16
+ #include <stdio.h>
16
17
#include <string.h>
17
18
18
19
#include "alloc/malloc.h"
19
20
#include "attr.h"
20
21
#include "string/memset/memzero.h"
21
22
22
23
24
+ /*
25
+ * Maximum password length
26
+ *
27
+ * Consider that there is also limit in PAM (PAM_MAX_RESP_SIZE)
28
+ * currently set to 512.
29
+ */
30
+ #ifndef PASS_MAX
31
+ # define PASS_MAX (BUFSIZ - 1)
32
+ #endif
33
+
34
+
23
35
// Similar to getpass(3), but free of its problems.
24
36
#define agetpass (prompt ) agetpass_(prompt, RPP_REQUIRE_TTY)
25
37
#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