Mercurial > cpython-lru_cache-weakref
comparison Modules/socketmodule.c @ 17503:327efb59dbcd legacy-trunk
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.)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 13 Apr 2001 17:54:04 +0000 |
| parents | b650d7daa593 |
| children | e1c507cdc6f1 |
comparison
equal
deleted
inserted
replaced
| 17502:c5bab794dcde | 17503:327efb59dbcd |
|---|---|
| 193 #include "openssl/x509.h" | 193 #include "openssl/x509.h" |
| 194 #include "openssl/pem.h" | 194 #include "openssl/pem.h" |
| 195 #include "openssl/ssl.h" | 195 #include "openssl/ssl.h" |
| 196 #include "openssl/err.h" | 196 #include "openssl/err.h" |
| 197 #include "openssl/rand.h" | 197 #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 | |
| 198 #endif /* USE_SSL */ | 205 #endif /* USE_SSL */ |
| 199 | 206 |
| 200 #if defined(MS_WINDOWS) || defined(__BEOS__) | 207 #if defined(MS_WINDOWS) || defined(__BEOS__) |
| 201 /* BeOS suffers from the same socket dichotomy as Win32... - [cjh] */ | 208 /* BeOS suffers from the same socket dichotomy as Win32... - [cjh] */ |
| 202 /* seem to be a few differences in the API */ | 209 /* seem to be a few differences in the API */ |
