Use OTP_ALG_DEFAULT.

Consistent language
Check return value from des_read_pw_string.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@999 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 02:22:06 +00:00
parent 34a51d3abf
commit ef51fd2aab
2 changed files with 10 additions and 7 deletions

View File

@@ -70,7 +70,8 @@ print (int argc,
usage ();
n = atoi(argv[0]);
seed = argv[1];
des_read_pw_string (pw, sizeof(pw), "Password: ", 0);
if (des_read_pw_string (pw, sizeof(pw), "Pass-phrase: ", 0))
return 1;
alg->init (key, pw, seed);
if (extendedp)
if (hexp)
@@ -101,7 +102,7 @@ main (int argc, char **argv)
int count = 10;
int hexp = 0;
int extendedp = 0;
OtpAlgorithm *alg = otp_find_alg ("md4");
OtpAlgorithm *alg = otp_find_alg (OTP_ALG_DEFAULT);
prog = argv[0];