Re: More M2Crypto issues

2007-01-19 Thread John Nagle
Gabriel Genellina wrote: At Thursday 18/1/2007 04:41, John Nagle wrote: On a previous version of M2Crypto that line said: map()[self.ctx] = self, and that failed too (unhashable object, I think). I changed the class _ctxmap (the map() above returns an instance of it) to use str(key) in the

Re: More M2Crypto issues

2007-01-19 Thread Heikki Toivonen
John Nagle wrote: I've been running M2Crypto successfully using Python 2.4 on Windows 2000, and now I'm trying to get it to work on Python 2.3.4 on Linux. Attempting to initialize a context results in Traceback (most recent call last): [...] map()[long(self.ctx)] = self

Re: More M2Crypto issues

2007-01-19 Thread Heikki Toivonen
John Nagle wrote: Actually, at the moment I'm having an M2Crypto problem related to a SWIG/OpenSSL conflict. Older versions of OpenSSL have an include file that needs __i386__ defined, which is something GCC does based on what platform you're on. SWIG uses CPP, but doesn't set the

Re: More M2Crypto issues

2007-01-19 Thread John Nagle
Heikki Toivonen wrote: John Nagle wrote: Actually, at the moment I'm having an M2Crypto problem related to a SWIG/OpenSSL conflict. Older versions of OpenSSL have an include file that needs __i386__ defined, which is something GCC does based on what platform you're on. SWIG uses CPP, but

Re: More M2Crypto issues

2007-01-19 Thread Heikki Toivonen
John Nagle wrote: OpenSSL version: OpenSSL 0.9.7a Feb 19 2003 Hmm, I've never actually used that old OpenSSL myself, just assumed from the original author's notes that anything from 0.9.7 onward worked. Guess not. I am thinking of changing the requirements to state which one works... I think

Re: More M2Crypto issues

2007-01-19 Thread John Nagle
Heikki Toivonen wrote: John Nagle wrote: OpenSSL version: OpenSSL 0.9.7a Feb 19 2003 Hmm, I've never actually used that old OpenSSL myself, just assumed from the original author's notes that anything from 0.9.7 onward worked. Guess not. I am thinking of changing the requirements to

Re: More M2Crypto issues

2007-01-18 Thread John Nagle
Upgraded to Python 2.5 on the Linux system, rebuild M2Crypto, and it stil fails, but the last line of the error message changed to: ValueError: invalid literal for long() with base 10: '_40f91a08_p_SSL_CTX' Others have encountered this problem, from a Google search. Is long supposed

Re: More M2Crypto issues

2007-01-18 Thread Gabriel Genellina
At Thursday 18/1/2007 04:41, John Nagle wrote: I've been running M2Crypto successfully using Python 2.4 on Windows 2000, and now I'm trying to get it to work on Python 2.3.4 on Linux. Attempting to initialize a context results in Traceback (most recent call last): File

More M2Crypto issues

2007-01-17 Thread John Nagle
I've been running M2Crypto successfully using Python 2.4 on Windows 2000, and now I'm trying to get it to work on Python 2.3.4 on Linux. Attempting to initialize a context results in Traceback (most recent call last): File /www/htdocs/sitetruth.com/cgi/ratingdetails.cgi, line 46, in ?

More M2Crypto issues. Not big ones, though.

2007-01-12 Thread John Nagle
A list of small problems and bugs in the current M2Crypto: I need to look at SSL certificates in some detail, so this is all about the access functions for certificates. Bugs: 1. Off by one error at X509.get_ext_count(). Reports eight extensions on a certificate that only has

Re: More M2Crypto issues. Not big ones, though.

2007-01-12 Thread Heikki Toivonen
John Nagle wrote: A list of small problems and bugs in the current M2Crypto: I need to look at SSL certificates in some detail, so this is all about the access functions for certificates. Thanks, got the reports, will check them out. 3. /M2Crypto/SSL/Connection.py:147:

Re: More M2Crypto issues. Not big ones, though.

2007-01-12 Thread John Nagle
Heikki Toivonen wrote: John Nagle wrote: A list of small problems and bugs in the current M2Crypto: I need to look at SSL certificates in some detail, so this is all about the access functions for certificates. Thanks, got the reports, will check them out. 3.