tag 637904 + patch
thanks

Simon McVittie <s...@debian.org>
> m2crypto appears to have regressed between 0.20.1-1.1 and 0.21.1-1:
> 
>> smcv@reptile(sid-amd64)% python2.6 -c 'import M2Crypto'
>> Traceback (most recent call last):
>>   File "<string>", line 1, in <module>
>>   File "/usr/lib/python2.6/dist-packages/M2Crypto/__init__.py", line 22, in 
>> <module>
>>     import __m2crypto
>> ImportError: /usr/lib/python2.6/dist-packages/M2Crypto/__m2crypto.so: 
>> undefined symbol: SSLv2_method

It seems as the fix from 0.20.1-1.1 for this issue has been silently dropped.
But that fix still applies and works fine. I've attached the patch.

In view of #637750 please note that test_sslv23_no_v2_no_service and
test_sslv23_weak_crypto will fail because openssl seems to ignore -no_ssl3
silently. But I didn't dig any further.

Kind regards
-- 
Sebastian Ramacher
--- m2crypto-0.20.1.orig/SWIG/_ssl.i
+++ m2crypto-0.20.1/SWIG/_ssl.i
@@ -41,8 +45,10 @@
 %rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long;
 extern const char *SSL_alert_desc_string_long(int);
 
+#ifndef OPENSSL_NO_SSL2
 %rename(sslv2_method) SSLv2_method;
 extern SSL_METHOD *SSLv2_method(void);
+#endif
 %rename(sslv3_method) SSLv3_method;
 extern SSL_METHOD *SSLv3_method(void);
 %rename(sslv23_method) SSLv23_method;

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to