From 94a5df1840a7548496163703222ebef6255df08b Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 20 Jul 2010 08:07:23 -0700 Subject: [PATCH] use ct_memcmp --- lib/hcrypto/test_hmac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hcrypto/test_hmac.c b/lib/hcrypto/test_hmac.c index 263f4f7ab..6d307c35a 100644 --- a/lib/hcrypto/test_hmac.c +++ b/lib/hcrypto/test_hmac.c @@ -41,6 +41,7 @@ #include #include +#include int main(int argc, char **argv) @@ -66,7 +67,7 @@ main(int argc, char **argv) return 1; } - if (memcmp(hmac, answer, hmaclen) != 0) { + if (ct_memcmp(hmac, answer, hmaclen) != 0) { printf("wrong answer\n"); return 1; }