]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
authorRobert Millan <rmh@aybabtu.com>
Mon, 9 Nov 2009 08:05:27 +0000 (08:05 +0000)
committerRobert Millan <rmh@aybabtu.com>
Mon, 9 Nov 2009 08:05:27 +0000 (08:05 +0000)
        * normal/auth.c: Include `<grub/time.h>'.
        (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.

ChangeLog
normal/auth.c

index f16addee26fde613d8722e108bec131fd5c2927c..9485dec3c667c0646cfd0eaf1a4346f49578b63c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * normal/auth.c: Include `<grub/time.h>'.
+       (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
+
 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
 
        * normal/auth.c (punishment_delay): New variable.
index 0d3d5b2b2a8e16b8cab70468d0bedb8241158964..41547e33ccdb9b9a294bf4a6c3c4c34b8004c7cf 100644 (file)
@@ -22,6 +22,7 @@
 #include <grub/misc.h>
 #include <grub/env.h>
 #include <grub/normal.h>
+#include <grub/time.h>
 
 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.  */