mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 08:18:30 +00:00
Import libbsd readpassphrase (#1182)
Included from: https://gitlab.freedesktop.org/libbsd/libbsd At commit 04a24db27ad1572f766bad772cdd9c146e6d9cf0.
This commit is contained in:
parent
2ec20b6c4c
commit
4292348707
2 changed files with 229 additions and 0 deletions
17
libc/stdio/readpassphrase.h
Normal file
17
libc/stdio/readpassphrase.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_STDIO_READPASSPHRASE_H_
|
||||
#define COSMOPOLITAN_LIBC_STDIO_READPASSPHRASE_H_
|
||||
|
||||
#define RPP_ECHO_OFF 0x00
|
||||
#define RPP_ECHO_ON 0x01
|
||||
#define RPP_REQUIRE_TTY 0x02
|
||||
#define RPP_FORCELOWER 0x04
|
||||
#define RPP_FORCEUPPER 0x08
|
||||
#define RPP_SEVENBIT 0x10
|
||||
#define RPP_STDIN 0x20
|
||||
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
char *readpassphrase(const char *, char *, size_t, int) libcesque;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* COSMOPOLITAN_LIBC_STDIO_READPASSPHRASE_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue