From 7aea29a38889685803216def2703adfafb90fc32 Mon Sep 17 00:00:00 2001 From: Robert Millan Date: Mon, 9 Nov 2009 08:05:27 +0000 Subject: [PATCH] 2009-11-09 Robert Millan * normal/auth.c: Include `'. (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'. --- ChangeLog | 5 +++++ normal/auth.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f16addee2..9485dec3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-11-09 Robert Millan + + * normal/auth.c: Include `'. + (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'. + 2009-11-09 Robert Millan * normal/auth.c (punishment_delay): New variable. diff --git a/normal/auth.c b/normal/auth.c index 0d3d5b2b2..41547e33c 100644 --- a/normal/auth.c +++ b/normal/auth.c @@ -22,6 +22,7 @@ #include #include #include +#include struct grub_auth_user { @@ -42,7 +43,7 @@ grub_auth_strcmp (const char *s1, const char *s2) grub_uint64_t end; end = grub_get_time_ms () + 100; - ret = strcmp (s1, s2); + ret = grub_strcmp (s1, s2); /* This prevents an attacker from deriving information about the password from the time it took to execute this function. */