* fhandler_random.cc (read): Call CryptAquireContext with
CRYPT_VERIFYCONTEXT.
This commit is contained in:
parent
46a43a99c6
commit
7f4b6412be
@ -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>
|
Thu Jun 8 22:49:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Erase two lines checked in
|
* path.cc (path_conv::check): Erase two lines checked in
|
||||||
|
@ -44,9 +44,10 @@ fhandler_dev_random::read (void *ptr, size_t len)
|
|||||||
return 0;
|
return 0;
|
||||||
if (!crypt_prov
|
if (!crypt_prov
|
||||||
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
&& !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,
|
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
||||||
CRYPT_MACHINE_KEYSET | CRYPT_NEWKEYSET ))
|
CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET
|
||||||
|
| CRYPT_NEWKEYSET ))
|
||||||
{
|
{
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user