summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index c92dc95..e5dc7cb 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -195,6 +195,13 @@ Socket methods:
#include "openssl/ssl.h"
#include "openssl/err.h"
#include "openssl/rand.h"
+
+#if OPENSSL_VERSION_NUMBER < 0x0090510fL
+/* RAND_status was added in OpenSSL 0.9.5. If it is not available,
+ we assume that seeding the RNG is necessary every time. */
+#define RAND_status() 0
+#endif
+
#endif /* USE_SSL */
#if defined(MS_WINDOWS) || defined(__BEOS__)