* fhandler_random.cc (read): Call CryptAquireContext with

CRYPT_VERIFYCONTEXT.
This commit is contained in:
Corinna Vinschen 2000-06-11 14:01:18 +00:00
parent 46a43a99c6
commit 7f4b6412be
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Jun 11 15:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
* fhandler_random.cc (read): Call CryptAquireContext with
CRYPT_VERIFYCONTEXT.
Thu Jun 8 22:49:00 2000 Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::check): Erase two lines checked in

View File

@ -44,9 +44,10 @@ fhandler_dev_random::read (void *ptr, size_t len)
return 0;
if (!crypt_prov
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
CRYPT_MACHINE_KEYSET)
CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET)
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
CRYPT_MACHINE_KEYSET | CRYPT_NEWKEYSET ))
CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET
| CRYPT_NEWKEYSET ))
{
__seterrno ();
return -1;