* fhandler_random.cc (read): Use CRYPT_MACHINE_KEYSET in
call to CryptAcquireContext() to serve users that did not log in interactively.
This commit is contained in:
parent
3a26e0cbed
commit
cbaa7e69b7
@ -1,3 +1,9 @@
|
|||||||
|
Wed May 27 15:57:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_random.cc (read): Use CRYPT_MACHINE_KEYSET in
|
||||||
|
call to CryptAcquireContext() to serve users that did not
|
||||||
|
log in interactively.
|
||||||
|
|
||||||
Wed May 26 11:16:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Wed May 26 11:16:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* errno.cc (errmap): Map ERROR_BAD_NET_NAME to errno ENOSHARE.
|
* errno.cc (errmap): Map ERROR_BAD_NET_NAME to errno ENOSHARE.
|
||||||
|
@ -43,10 +43,10 @@ fhandler_dev_random::read (void *ptr, size_t len)
|
|||||||
if (!len)
|
if (!len)
|
||||||
return 0;
|
return 0;
|
||||||
if (!crypt_prov
|
if (!crypt_prov
|
||||||
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV,
|
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
||||||
PROV_RSA_FULL, 0)
|
CRYPT_MACHINE_KEYSET)
|
||||||
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV,
|
&& !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
||||||
PROV_RSA_FULL, CRYPT_NEWKEYSET))
|
CRYPT_MACHINE_KEYSET | CRYPT_NEWKEYSET ))
|
||||||
{
|
{
|
||||||
__seterrno ();
|
__seterrno ();
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user