*/
static int
cryptocard_response(otp_user_info_t *user_info,
-#ifdef __GNUC__
-__attribute__ ((unused))
-#endif
- const char csd[OTP_MAX_CSD_LEN + 1],
const char challenge[OTP_MAX_CHALLENGE_LEN + 1],
char response[OTP_MAX_RESPONSE_LEN + 1],
const char *log_prefix)
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],
char [OTP_MAX_RESPONSE_LEN + 1],
const char *);
}
/* Calculate the async response. */
- if (user_info.cardops->response(&user_info, user_state.csd, challenge,
+ if (user_info.cardops->response(&user_info, challenge,
&e_response[pin_offset],
log_prefix) != 0) {
otp_log(OTP_LOG_ERR, "%s: unable to calculate async response for [%s], "
}
/* Calculate sync response. */
- if (user_info.cardops->response(&user_info, user_state.csd, challenge,
+ if (user_info.cardops->response(&user_info, challenge,
&e_response[pin_offset],
log_prefix) != 0) {
otp_log(OTP_LOG_ERR,
int (*challenge)(const otp_user_info_t *, const otp_user_state_t *,
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],
+ int (*response)(otp_user_info_t *, const char [OTP_MAX_CHALLENGE_LEN + 1],
char [OTP_MAX_RESPONSE_LEN + 1], const char *);
int (*updatecsd)(const otp_user_info_t *, otp_user_state_t *,
const char [OTP_MAX_CHALLENGE_LEN + 1],