Files
inexact/src/readpassphrase.h
2019-05-27 21:40:41 +02:00

24 lines
750 B
C

#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 */