__attribute__ ((unused))
#endif
const char csd[OTP_MAX_CSD_LEN + 1],
+ char challenge[OTP_MAX_CHALLENGE_LEN + 1],
#ifdef __GNUC__
__attribute__ ((unused))
#endif
time_t when,
- char challenge[OTP_MAX_CHALLENGE_LEN + 1],
#ifdef __GNUC__
__attribute__ ((unused))
#endif
- unsigned twin,
+ int twin,
#ifdef __GNUC__
__attribute__ ((unused))
#endif
- unsigned ewin,
+ int ewin,
const char *log_prefix)
{
unsigned char output[8];
static int cryptocard_nullstate(const otp_option_t *, const otp_user_info_t *,
otp_user_state_t *, time_t, const char *);
static int cryptocard_challenge(const otp_user_info_t *,
- const char [OTP_MAX_CSD_LEN + 1], time_t,
- char [OTP_MAX_CHALLENGE_LEN + 1],
- unsigned, unsigned, const char *);
+ const char [OTP_MAX_CSD_LEN + 1],
+ char [OTP_MAX_CHALLENGE_LEN + 1], time_t,
+ int, int, const char *);
static int cryptocard_response(otp_user_info_t *,
const char [OTP_MAX_CSD_LEN + 1],
const char [OTP_MAX_CHALLENGE_LEN + 1],
for (t = 0; t <= tend; ++t) {
for (e = 0; e <= end; ++e) {
/* Get next challenge. */
- if (user_info.cardops->challenge(&user_info, user_state.csd, now,
- challenge, t, e, log_prefix) != 0) {
+ if (user_info.cardops->challenge(&user_info, user_state.csd, challenge,
+ now, t, e, log_prefix) != 0) {
otp_log(OTP_LOG_ERR,
"%s: unable to get sync challenge t:%d e:%d for [%s]",
log_prefix, t, e, username);
int (*nullstate)(const otp_option_t *, const otp_user_info_t *,
otp_user_state_t *, time_t, const char *);
int (*challenge)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1],
- time_t, char [OTP_MAX_CHALLENGE_LEN + 1], unsigned,
- unsigned, const char *);
+ char [OTP_MAX_CHALLENGE_LEN + 1], time_t, int, int,
+ const char *);
int (*response)(otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1],
const char [OTP_MAX_CHALLENGE_LEN + 1],
char [OTP_MAX_RESPONSE_LEN + 1], const char *);