* util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous

error message.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-08-22 20:18:16 +02:00
parent 6b87c10a0b
commit 8169047804
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
error message.
2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add

View file

@ -125,10 +125,7 @@ grub_get_random (void *out, grub_size_t len)
MS_DEF_PROV,
PROV_RSA_FULL,
CRYPT_VERIFYCONTEXT))
{
printf ("context: %x\n", GetLastError());
return 1;
}
return 1;
if (!CryptGenRandom (hCryptProv, len, out))
{
CryptReleaseContext (hCryptProv, 0);