about summary refs log tree commit diff
path: root/compat_readpassphrase.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-12 13:35:23 -0500
committerJune McEnroe <june@causal.agency>2022-02-12 13:36:24 -0500
commitedad0218c1d7fc10686d26050829865d0894026a (patch)
treea309f69c63746867acdd64adaa5522c7e475c320 /compat_readpassphrase.c
parentImport compat_readpassphrase.c from oconfigure (diff)
downloadcatgirl-edad0218c1d7fc10686d26050829865d0894026a.tar.gz
catgirl-edad0218c1d7fc10686d26050829865d0894026a.zip
Copy RPP defines from oconfigure
We don't use any flags, so just define them in the compat source
file.
Diffstat (limited to 'compat_readpassphrase.c')
-rw-r--r--compat_readpassphrase.c12
1 files changed, 12 insertions, 0 deletions
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 <termios.h>
 #include <unistd.h>
 
+/*
+ * 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
07d4b4605a212a645fc78420a29fa34ed9c0642&follow=1'>Exit focus and paste modes on err exitJune McEnroe 2020-02-11Add startup GPLv3 note and URLJune McEnroe 2020-02-11Make sure -D_GNU_SOURCE ends up in CFLAGS on LinuxJune McEnroe 2020-02-11Add note about setting PKG_CONFIG_PATHJune McEnroe 2020-02-11Rename query ID on nick changeJune McEnroe 2020-02-11Call completeClear when closing a windowJune McEnroe 2020-02-11Don't insert color codes for non-mentionsJune McEnroe 2020-02-11Take first two words in colorMentionsJune McEnroe 2020-02-11Use time_t for save signatureJune McEnroe 2020-02-11Set self.nick to * initiallyJune McEnroe 2020-02-11Define ColorCap instead of hardcoding 100June McEnroe 2020-02-11Move hash to top of chat.hJune McEnroe 2020-02-11Move base64 out of chat.hJune McEnroe 2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe 2020-02-11Cast towupper to wchar_tJune McEnroe 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe