summaryrefslogtreecommitdiff
path: root/src/crypt.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-01-26 16:24:42 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-01-26 16:24:42 +0000
commit425c7b6c47d4eaf6b11c2d7a626a1dd49905b2dd (patch)
tree7dd99d0d09a2a85fba17dc7efbd98fb1414489ac /src/crypt.c
parent9fdb0889676732d89dc65dd53806d5e33d56ec5f (diff)
downloadgnutls-425c7b6c47d4eaf6b11c2d7a626a1dd49905b2dd.tar.gz
*** empty log message ***
Diffstat (limited to 'src/crypt.c')
-rw-r--r--src/crypt.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/crypt.c b/src/crypt.c
index 1fa5b8573b..6bc9ae5c35 100644
--- a/src/crypt.c
+++ b/src/crypt.c
@@ -62,12 +62,11 @@ int main(int argc, char **argv)
*/
int crypt_int(const char *username, const char *passwd, int salt,
- char *tpasswd_conf, char *tpasswd, int uindex);
+ char *tpasswd_conf, char *tpasswd, int uindex);
static int read_conf_values(gnutls_datum * g, gnutls_datum * n, char *str);
static int _verify_passwd_int(const char *username, const char *passwd,
- char *verifier, char *salt,
- const gnutls_datum * g,
- const gnutls_datum * n);
+ char *verifier, char *salt,
+ const gnutls_datum * g, const gnutls_datum * n);
static void print_num(const char *msg, const gnutls_datum * num)
@@ -413,6 +412,10 @@ int main(int argc, char **argv)
salt = 16;
passwd = getpass("Enter password: ");
+ if (passwd==NULL) {
+ fprintf(stderr, "Please specify a password\n");
+ return -1;
+ }
/* not ready yet */
if (info.verify != 0) {