]> granicus.if.org Git - openssl/commitdiff
Cygwin randomness
authorUlf Möller <ulf@openssl.org>
Sat, 19 Mar 2005 11:40:41 +0000 (11:40 +0000)
committerUlf Möller <ulf@openssl.org>
Sat, 19 Mar 2005 11:40:41 +0000 (11:40 +0000)
CHANGES
crypto/rand/rand_win.c

diff --git a/CHANGES b/CHANGES
index fe69f8fdb2d6fe4bf19bdf74211d1cc86f794770..e8222c200c3b4f705f7abcebb392a6bee2be21dc 100644 (file)
--- 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 <dtucker@zip.com.au> via Lutz Jänicke, resolves #1014]
index aaea92c8fd00d34e06e166e1145c8646eab6a565..a7c2c9df7426bc53d4df3206793d45b4667e6d0a 100644 (file)
 #include <openssl/rand.h>
 #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 <windows.h>
 #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 */