From: Ulf Möller Date: Sat, 19 Mar 2005 11:40:41 +0000 (+0000) Subject: Cygwin randomness X-Git-Tag: OpenSSL_0_9_7f~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d2a7098d62899b21f26c370b2377e822c9fb63e;p=openssl Cygwin randomness --- diff --git a/CHANGES b/CHANGES index fe69f8fdb2..e8222c200c 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,9 @@ Changes between 0.9.7e and 0.9.7f [XX xxx XXXX] + *) Use Windows randomness collection on Cygwin. + [Ulf Möller] + *) Fix hang in EGD/PRNGD query when communication socket is closed prematurely by EGD/PRNGD. [Darren Tucker via Lutz Jänicke, resolves #1014] diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index aaea92c8fd..a7c2c9df74 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -113,7 +113,7 @@ #include #include "rand_lcl.h" -#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) +#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN32_CYGWIN) #include #ifndef _WIN32_WINNT # define _WIN32_WINNT 0x0400 @@ -680,7 +680,7 @@ static void readtimer(void) static void readscreen(void) { -#ifndef OPENSSL_SYS_WINCE +#if !defined(OPENSSL_SYS_WINCE) && !defined(OPENSSL_SYS_WIN32_CYGWIN) HDC hScrDC; /* screen DC */ HDC hMemDC; /* memory DC */ HBITMAP hBitmap; /* handle for our bitmap */