diff options
author | Simon Josefsson <simon@josefsson.org> | 2004-08-15 10:28:45 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2004-08-15 10:28:45 +0000 |
commit | d30a9c7494351bb538acbecb13cddcaefbbe2f45 (patch) | |
tree | f84af7482d7bad396d7d3f091d35ebdb197f5d82 /src/crypt.c | |
parent | ecf58cb15a0e3c7ff410d4517395256ba9e50d1a (diff) | |
download | gnutls-d30a9c7494351bb538acbecb13cddcaefbbe2f45.tar.gz |
Replace ad-hoc 'read_pass' with gnulib module 'getpass-gnu'.
Diffstat (limited to 'src/crypt.c')
-rw-r--r-- | src/crypt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crypt.c b/src/crypt.c index b3f7a7cce1..1fa5b8573b 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -1,4 +1,5 @@ /* + * Copyright (C) 2004 Simon Josefsson * Copyright (C) 2001,2003 Nikos Mavroyanopoulos * Copyright (C) 2004 Free Software Foundation * @@ -40,7 +41,6 @@ int main(int argc, char **argv) #include <gnutls/extra.h> #include <gcrypt.h> /* for randomize */ #include <crypt-gaa.h> -#include <getpass.h> #include <sys/types.h> #include <sys/stat.h> @@ -52,6 +52,9 @@ int main(int argc, char **argv) # include <windows.h> #endif +/* Gnulib portability files. */ +#include <getpass.h> + #define _MAX(x,y) (x>y?x:y) /* This may need some rewrite. A lot of stuff which should be here @@ -409,7 +412,7 @@ int main(int argc, char **argv) salt = 16; - passwd = read_pass("Enter password: "); + passwd = getpass("Enter password: "); /* not ready yet */ if (info.verify != 0) { |