aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-03 07:23:21 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-03 07:23:21 +0100
commite275a3418a290576210270b291bbca4e2fc53e3b (patch)
treee6a4129ff9cebfc33237b4adadd83427a3c83dd5 /src/cerberus.c
parentmissed staging (diff)
downloadlibpassphrase-e275a3418a290576210270b291bbca4e2fc53e3b.tar.gz
libpassphrase-e275a3418a290576210270b291bbca4e2fc53e3b.tar.bz2
libpassphrase-e275a3418a290576210270b291bbca4e2fc53e3b.tar.xz
secure the tty
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/cerberus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index 5b69a81..76a2f74 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -125,6 +125,10 @@ int main(int argc, char** argv)
alarm(TIMEOUT_SECONDS);
+ /* Make sure nopony is spying */
+ secure_tty();
+
+
/* Get the passphrase, if -f has not been used */
if (skip_auth == 0)
{