blob: 5fc0bc2a6b7b379855919ad1cc52b7115a10740c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef READPASSPHRASE_H
#define READPASSPHRASE_H
#ifndef _PATH_TTY
# define _PATH_TTY "/dev/tty"
#endif
#define RPP_ECHO_OFF 0x00 /* Turn off echo (default). */
#define RPP_ECHO_ON 0x01 /* Leave echo on. */
#define RPP_REQUIRE_TTY 0x02 /* Fail if there is no tty. */
#define RPP_FORCELOWER 0x04 /* Force input to lower case. */
#define RPP_FORCEUPPER 0x08 /* Force input to upper case. */
#define RPP_SEVENBIT 0x10 /* Strip the high bit from input. */
#define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */
#include <stddef.h>
char *readpassphrase(const char *prompt, char *outBuf, size_t outBufLen, int flags);
#endif /* READPASSPHRASE_H */
|