aboutsummaryrefslogtreecommitdiffstats
path: root/src/cerberus.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-11-22 10:16:02 +0100
committerMattias Andrée <maandree@operamail.com>2013-11-22 10:16:02 +0100
commit5e7d3624fa967adb90504752d6ff59678a75020f (patch)
treea84d3d21c482de9f705c60e3798c66e2d04a6283 /src/cerberus.c
parentadd crypt auth module (diff)
downloadcerberus-5e7d3624fa967adb90504752d6ff59678a75020f.tar.gz
cerberus-5e7d3624fa967adb90504752d6ff59678a75020f.tar.bz2
cerberus-5e7d3624fa967adb90504752d6ff59678a75020f.tar.xz
use libpassphrase
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/cerberus.c')
-rw-r--r--src/cerberus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cerberus.c b/src/cerberus.c
index c555a2b..8b103f2 100644
--- a/src/cerberus.c
+++ b/src/cerberus.c
@@ -104,7 +104,7 @@ void do_login(int argc, char** argv)
/* Disable echoing */
- disable_echo();
+ passphrase_disable_echo();
/* This should be done as early and quickly as possible so as little
as possible of the passphrase gets leaked to the output if the user
begins entering the passphrase directly after the username. */
@@ -201,7 +201,7 @@ void do_login(int argc, char** argv)
secure_tty(tty_group);
/* Redisable echoing */
- disable_echo();
+ passphrase_disable_echo();
/* Set up clean quiting and time out */
@@ -246,7 +246,7 @@ void do_login(int argc, char** argv)
}
/* Reset terminal settings */
- reenable_echo();
+ passphrase_reenable_echo();
/* Verify account, such as that it is enabled */
@@ -311,7 +311,7 @@ void do_login(int argc, char** argv)
*/
char* read_passphrase(void)
{
- passphrase = get_passphrase();
+ passphrase = passphrase_read();
return passphrase;
}