From d404d15450732e90d5edc721290b34bbde1a776c Mon Sep 17 00:00:00 2001 From: Douglas Ray Date: Wed, 18 Sep 2013 13:44:00 +0200 Subject: [PATCH] * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG as secure. --- ChangeLog | 5 +++++ util/grub-mkpasswd-pbkdf2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2c82cd3e9..9f0889dcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-18 Douglas Ray + + * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG + as secure. + 2013-09-18 Aleš Nesrsta * docs/grub.texi: Fix broken link. diff --git a/util/grub-mkpasswd-pbkdf2.c b/util/grub-mkpasswd-pbkdf2.c index c4e5c5968..36b06ac12 100644 --- a/util/grub-mkpasswd-pbkdf2.c +++ b/util/grub-mkpasswd-pbkdf2.c @@ -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__) +#if ! defined (__linux__) && ! defined (__FreeBSD__) && ! defined (__OpenBSD__) /* 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"