git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1000 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 02:28:17 +00:00
parent ef51fd2aab
commit 3ae9bbe8c1

View File

@@ -83,7 +83,7 @@ renew (int argc, char **argv, int count, OtpAlgorithm *alg, int hexp)
ctx = &oldctx; ctx = &oldctx;
if(otp_challenge (ctx, user, prompt, sizeof(prompt))) if(otp_challenge (ctx, user, prompt, sizeof(prompt)))
return 1; return 1;
kf(des_read_pw_string (pw, sizeof(pw), prompt, 0)) if(des_read_pw_string (pw, sizeof(pw), prompt, 0))
return 1; return 1;
ret = otp_verify_user_1 (ctx, pw); ret = otp_verify_user_1 (ctx, pw);
if (ret == 0) { if (ret == 0) {
@@ -140,7 +140,7 @@ set (int argc, char **argv, int count, OtpAlgorithm *alg, int hexp)
ctx.seed[sizeof(ctx.seed) - 1] = '\0'; ctx.seed[sizeof(ctx.seed) - 1] = '\0';
strlwr(ctx.seed); strlwr(ctx.seed);
do { do {
if (des_read_pw_string (pw, sizeof(pw), "Pass-phrase: ", VERIFY)) if (des_read_pw_string (pw, sizeof(pw), "Pass-phrase: ", 1))
return 1; return 1;
if (strlen (pw) < OTP_MIN_PASSPHRASE) if (strlen (pw) < OTP_MIN_PASSPHRASE)
printf ("Too short pass-phrase. Use at least %d characters\n", printf ("Too short pass-phrase. Use at least %d characters\n",