]> err.no Git - yubikey-server-c/commitdiff
use id, not just i when checking the signature
authorTollef Fog Heen <tfheen@err.no>
Mon, 19 Oct 2009 13:18:47 +0000 (15:18 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 19 Oct 2009 13:18:47 +0000 (15:18 +0200)
src/main.c

index 9e02fe9e8c077f2ffdbdae16bbe4919a83938e90..6a4453616d3ac180a9addeada7a979bfea9587dd 100644 (file)
@@ -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;