aboutsummaryrefslogtreecommitdiff
path: root/src/ext/tor_readpassphrase.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-05 23:22:28 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-05 23:22:28 -0400
commitd7a0382ba337bd1cbd7568a607d85e303012b22c (patch)
treee373ed0ee21e3d9c8030ae172f79ea0ae553cf63 /src/ext/tor_readpassphrase.h
parentd037369e562ec40e602a86919c3e8341c867b48b (diff)
downloadtor-d7a0382ba337bd1cbd7568a607d85e303012b22c.tar.gz
tor-d7a0382ba337bd1cbd7568a607d85e303012b22c.zip
Don't call the system toupper or tolower.
Yes, we could cast to unsigned char first, but it's probably safest to just use our own (in test_util), or remove bad-idea features that we don't use (in readpassphrase.c). Fixes 18728.
Diffstat (limited to 'src/ext/tor_readpassphrase.h')
-rw-r--r--src/ext/tor_readpassphrase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext/tor_readpassphrase.h b/src/ext/tor_readpassphrase.h
index 83ae1f20a8..64f5668cad 100644
--- a/src/ext/tor_readpassphrase.h
+++ b/src/ext/tor_readpassphrase.h
@@ -32,9 +32,11 @@
#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. */
+#if 0
#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. */
+#endif
#define RPP_STDIN 0x20 /* Read from stdin, not /dev/tty */
char * readpassphrase(const char *, char *, size_t, int);