M2Crypto 0.19.1 – OpenSSL without EC
M2Crypto 0.19 shipped with some code that expected OpenSSL with EC support. But since EC can be disabled, and at least Fedora Core ships with that disabled, things didn’t work so well in that case. Thanks to Miloslav Trmac who turned in a quick fix, we now have M2Crypto 0.19.1 that fixes this issue. No other major issues have surfaced in the week since 0.19 release, and since there have been at least 153 downloads according to PyPI, things look pretty stable.
Incidentally, if you were able to build 0.19, you should not need to get 0.19.1.



Mike:
M2Crypto provides EC support for ECDSA/ECDH. I have installed OpenSSL 0.9.8i which contains support for EC. However when I run “from M2Crypto import EC,BIO” I get error saying EC_init() failed. So I added debug to print m2.OPENSSL_VERSION_TEXT value. It gets printed as “OpenSSL 0.9.7 19 Feb 2003″. This version of OpenSSL doesnot support EC.
I tried “python setup.py build build_ext –openssl=”new_path where OpenSSL 0.9.8i is installed”. Though M2Crypto is built again “Python setup.py install” , I still see that it points to “Old version of OpenSSL”.
Any Pointers on how to successfully get M2Crypto to use 0.9.8i will be useful.
May 11, 2009, 6:39 amHeikki Toivonen:
You probably need to specify –library-dirs and –include-dirs as well. You can see how Chandler builds M2Crypto with custom OpenSSL here: http://svn.osafoundation.org/chandler/trunk/external/m2crypto/Makefile.
I’ll add a note about this to the FAQ.
May 11, 2009, 8:38 am