#ifdef __GNUC__
__attribute__ ((unused))
#endif
- const char csd[OTP_MAX_CSD_LEN + 1],
-#ifdef __GNUC__
-__attribute__ ((unused))
-#endif
- time_t when)
+ const char csd[OTP_MAX_CSD_LEN + 1])
{
return 0;
}
const otp_user_state_t *, int, int,
const char *);
static int cryptocard_maxtwin(const otp_user_info_t *,
- const char [OTP_MAX_CSD_LEN + 1], time_t);
+ const char [OTP_MAX_CSD_LEN + 1]);
#ifdef __GNUC__
__attribute__ ((constructor))
(void) strcpy(challenge, user_state.challenge);
/* Test each sync response in the window. */
- tend = user_info.cardops->maxtwin(&user_info, user_state.csd, now);
+ tend = user_info.cardops->maxtwin(&user_info, user_state.csd);
for (t = 0; t <= tend; ++t) {
for (e = 0; e <= end; ++e) {
/* Get next challenge. */
const char [OTP_MAX_CHALLENGE_LEN + 1], const char *);
int (*isconsecutive)(const otp_user_info_t *, const otp_user_state_t *, int,
int, const char *);
- int (*maxtwin)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1],
- time_t);
+ int (*maxtwin)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1]);
} cardops_t;
#define OTP_MAX_VENDORS 16
extern cardops_t otp_cardops[OTP_MAX_VENDORS];