From: Tollef Fog Heen Date: Mon, 19 Oct 2009 13:18:47 +0000 (+0200) Subject: use id, not just i when checking the signature X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bc30ca39e0c72885428f430c3f1ba520287678c;p=yubikey-server-c use id, not just i when checking the signature --- diff --git a/src/main.c b/src/main.c index 9e02fe9..6a44536 100644 --- a/src/main.c +++ b/src/main.c @@ -72,7 +72,8 @@ int validate_signature(const char *key, size_t key_len, const char *h, char *our_sig = NULL; gcry_md_hd_t hd; int r = 0; - asprintf(&line, "i=%s&otp=%s", id, otp); + + asprintf(&line, "id=%s&otp=%s", id, otp); if (line == NULL) { r = -1; goto free_mem;