[PYTHON-CRYPTO] Building M2Crypto on Windows using Python 2.4...

Arno Bakker arno=py at CS.VU.NL
Mon Oct 10 15:42:54 CEST 2005


Hi

I have problems compiling M2Crypto-0.15 on Windows XP with Python 2.4:
Setup:
	- Windows XP SP2, all fixes
	- official Python 2.4.2 for Windows installer
	- Win32-OpenSSL 0.9.8 binary distribution
	- official SWIG 1.3.25 for Windows
	- Visual Studio .Net 2003 (7.1.3088)
	- M2Crypto 0.15 checked out of svn.osfoundation.org
	
M2Crypto builds OK, but when I run alltests.py it cannot find the win32process
module. Then when I leave out the SSL test I get:

	.....OPENSSL_Uplink(00D89010,07): no OPENSSL_Applink
	
This is apparently due to some new form of glue between OpenSSL 0.9.8 and
Win32. (See "FAQ" file in OpenSSL 0.9.8 source distro).

However, when I try to use OpenSSL 0.9.7g (binary distro) I get even bigger
problems. alltest.py crashes on an Access Violation Exception in fopen.c,
FILE * __cdecl_ _tfsopen( ... ) function. If I try test_dsa.py it crashes
with an Access Violation Exception in free.c, void __cdecl_ _free_base( ... )

A friend told me that he got it working on with Python 2.3 and OpenSSL 0.9.8,
with VisualStudio 6, but I'd prefer 2.4.

Any ideas? Buying the installer is not an option, as I have to add code for
elliptic curve crypto, as you may know.

Thanks
	Arno



More information about the python-crypto mailing list