]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 22 Sep 2013 01:28:32 +0000 (03:28 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 22 Sep 2013 01:28:32 +0000 (03:28 +0200)
GNU/Hurd to the list of checked PRNG.

ChangeLog
util/grub-mkpasswd-pbkdf2.c

index 356fc8e2079c549ef16316534e5ffaf07b779879..e7cfe0435fb71861fb3d1679f797b0df4c1452f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
+       GNU/Hurd to the list of checked PRNG.
+
 2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * configure.ac: On FreeBSD use -melf_*_fbsd format.
index 36b06ac123afc2f1aeb74aefdfee1d9294dff236..0e09a02c39ef1c69ed0818c555a8877d0c2fa110 100644 (file)
@@ -112,7 +112,7 @@ hexify (char *hex, grub_uint8_t *bin, grub_size_t n)
 static int
 grub_get_random (void *out, grub_size_t len)
 {
-#if ! defined (__linux__) && ! defined (__FreeBSD__) && ! defined (__OpenBSD__)
+#if ! defined (__linux__) && ! defined (__FreeBSD__) && ! defined (__OpenBSD__) && !defined (__GNU__) && ! defined (_WIN32) && !defined(__CYGWIN__)
   /* TRANSLATORS: The generator might still be secure just GRUB isn't sure about it.  */
   printf ("%s", _("WARNING: your random generator isn't known to be secure\n"));
 #warning "your random generator isn't known to be secure"