[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.139,1.140

Guido van Rossum gvanrossum@users.sourceforge.net
2001年4月13日 10:54:06 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv21097
Modified Files:
	socketmodule.c 
Log Message:
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.)
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -C2 -r1.139 -r1.140
*** socketmodule.c	2001年03月18日 17:11:56	1.139
--- socketmodule.c	2001年04月13日 17:54:04	1.140
***************
*** 196,199 ****
--- 196,206 ----
 #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 */
 

AltStyle によって変換されたページ (->オリジナル) /