diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-03-01 15:35:36 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-06-17 10:11:18 -0400 |
commit | cbdf2c5d8f6fcce432e2355f406ca9e3c2340a5b (patch) | |
tree | 3a353cccbff8b5997c68177f7ea497209038edb3 /src/common/compat.h | |
parent | 1b52e95028e0d84b7a112e4b8f2e393261dbb19c (diff) | |
download | tor-cbdf2c5d8f6fcce432e2355f406ca9e3c2340a5b.tar.gz tor-cbdf2c5d8f6fcce432e2355f406ca9e3c2340a5b.zip |
Add a tor_getpass to read passphrases. Needs better backend.
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index 5189b7e056..549ed827d4 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -708,6 +708,8 @@ STATIC int tor_ersatz_socketpair(int family, int type, int protocol, #endif #endif +ssize_t tor_getpass(const char *prompt, char *output, size_t buflen); + /* This needs some of the declarations above so we include it here. */ #include "compat_threads.h" |