* 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: 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.
#include <grub/misc.h>
#include <grub/env.h>
#include <grub/normal.h>
+#include <grub/time.h>
struct grub_auth_user
{
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. */