]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_random.cc (read): Use CRYPT_MACHINE_KEYSET in
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 27 May 2000 14:00:20 +0000 (14:00 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 27 May 2000 14:00:20 +0000 (14:00 +0000)
        call to CryptAcquireContext() to serve users that did not
        log in interactively.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_random.cc

index a446a62c80f0fe5784dd4019ff6b61f580f790d9..5d8a9644ea8e48f6dff853f57db5182f2690a8e2 100644 (file)
@@ -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>
 
        * errno.cc (errmap): Map ERROR_BAD_NET_NAME to errno ENOSHARE.
index 6ea72fa0dd2d414e6746dcebd4c30e0d0266cd25..d8e51c66115bdbde4ba4e2bb1a60d7f9f7758519 100644 (file)
@@ -43,10 +43,10 @@ fhandler_dev_random::read (void *ptr, size_t len)
   if (!len)
     return 0;
   if (!crypt_prov
-      && !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV,
-                            PROV_RSA_FULL, 0)
-      && !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV,
-                               PROV_RSA_FULL, CRYPT_NEWKEYSET))
+      && !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
+                               CRYPT_MACHINE_KEYSET)
+      && !CryptAcquireContext (&crypt_prov, NULL, MS_DEF_PROV, PROV_RSA_FULL,
+                               CRYPT_MACHINE_KEYSET | CRYPT_NEWKEYSET ))
     {
       __seterrno ();
       return -1;
This page took 0.034238 seconds and 5 git commands to generate.