} else {
asprintf(&line, "status=%s×tamp=%s", status, timestamp);
}
+ /* XXX Check memory allocation */
gcry_md_open(&hd, GCRY_MD_SHA1, GCRY_MD_FLAG_HMAC);
gcry_md_setkey(hd, key, key_len);
gcry_md_write(hd, line, strlen(line));
void **UNUSED(con_cls))
{
const char *id = NULL, *otp = NULL, *h = NULL;
- char *uid, *otp_token;
+ char *uid = NULL, *otp_token = NULL;
char *signature = NULL, *status = NULL, *info = NULL, *timestamp = NULL;
char *shared_secret;
size_t shared_secret_len;
yubikey_token_st token;
struct ykc_stats stats;
memset(&token, '\0', sizeof(token));
+ memset(&stats, '\0', sizeof(stats));
timestamp = get_timestamp();
assert(timestamp != NULL);