avoid 'unused variable' warnings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15289 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -600,9 +600,9 @@ user(char *name)
|
||||
else
|
||||
reply(530, "User %s access denied.", name);
|
||||
} else {
|
||||
#ifdef OTP
|
||||
char ss[256];
|
||||
|
||||
#ifdef OTP
|
||||
if (otp_challenge(&otp_ctx, name, ss, sizeof(ss)) == 0) {
|
||||
reply(331, "Password %s for %s required.",
|
||||
ss, name);
|
||||
@@ -613,9 +613,9 @@ user(char *name)
|
||||
reply(331, "Password required for %s.", name);
|
||||
askpasswd = 1;
|
||||
} else {
|
||||
#ifdef OTP
|
||||
char *s;
|
||||
|
||||
#ifdef OTP
|
||||
if ((s = otp_error (&otp_ctx)) != NULL)
|
||||
lreply(530, "OTP: %s", s);
|
||||
#endif
|
||||
|
@@ -14,13 +14,12 @@ RCSID("$Id$");
|
||||
int
|
||||
pop_user (POP *p)
|
||||
{
|
||||
char ss[256];
|
||||
|
||||
strlcpy(p->user, p->pop_parm[1], sizeof(p->user));
|
||||
|
||||
if (p->auth_level == AUTH_OTP) {
|
||||
char *s = NULL;
|
||||
#ifdef OTP
|
||||
char ss[256], *s;
|
||||
|
||||
if(otp_challenge (&p->otp_ctx, p->user, ss, sizeof(ss)) == 0)
|
||||
return pop_msg(p, POP_SUCCESS, "Password %s required for %s.",
|
||||
ss, p->user);
|
||||
|
Reference in New Issue
Block a user