diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-06-11 18:01:18 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-06-11 18:01:18 +0400 |
commit | 7f4b6412bed92a8b503a35908ad55f4651f36419 (patch) | |
tree | 143c9b8b78c1b799ba6aa94fdf5912ed87e7219c | |
parent | 46a43a99c6b835dd6f10e2fd4d24cd5c70a26691 (diff) |
* fhandler_random.cc (read): Call CryptAquireContext with
CRYPT_VERIFYCONTEXT.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_random.cc | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index cdab85299..705cd55e7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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 diff --git a/winsup/cygwin/fhandler_random.cc b/winsup/cygwin/fhandler_random.cc index d8e51c661..9b784a853 100644 --- a/winsup/cygwin/fhandler_random.cc +++ b/winsup/cygwin/fhandler_random.cc @@ -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; |