From edad0218c1d7fc10686d26050829865d0894026a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Feb 2022 13:35:23 -0500 Subject: Copy RPP defines from oconfigure We don't use any flags, so just define them in the compat source file. --- compat_readpassphrase.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'compat_readpassphrase.c') diff --git a/compat_readpassphrase.c b/compat_readpassphrase.c index 353868a..3bb2045 100644 --- a/compat_readpassphrase.c +++ b/compat_readpassphrase.c @@ -32,6 +32,18 @@ #include #include +/* + * Macros and function required for readpassphrase(3). + */ +#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 +char *readpassphrase(const char *, char *, size_t, int); + #if !defined(_NSIG) && defined(NSIG) # define _NSIG NSIG #endif -- cgit 1.4.1-2-gfad0