From 6bc30ca39e0c72885428f430c3f1ba520287678c Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 19 Oct 2009 15:18:47 +0200 Subject: [PATCH] use id, not just i when checking the signature --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5