Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 058dae3

Browse files
committed
I am TENTATIVELY checking in Martin von Loewis's patch for the SSL
problem reported by Neil Schemenauer on python-dev on 4/12/01, wth subject "Problem with SSL and socketmodule on Debian Potato?". It's tentative because Moshe objected, but Martin rebutted, and Moshe seems unavailable for comments. (Note that with OpenSSL 0.9.6a, I get a lot of compilation warnings for socketmodule.c -- I'm assuming I can safely ignore these until 2.1 is released.)
1 parent 37832f0 commit 058dae3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,13 @@ Socket methods:
195195
#include "openssl/ssl.h"
196196
#include "openssl/err.h"
197197
#include "openssl/rand.h"
198+
199+
#if OPENSSL_VERSION_NUMBER < 0x0090510fL
200+
/* RAND_status was added in OpenSSL 0.9.5. If it is not available,
201+
we assume that seeding the RNG is necessary every time. */
202+
#define RAND_status() 0
203+
#endif
204+
198205
#endif /* USE_SSL */
199206

200207
#if defined(MS_WINDOWS) || defined(__BEOS__)

0 commit comments

Comments
 (0)