472,122 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

Errors testing m2crypto

Hi,

I get the following messages running the testall.py script with
m2crypto 0.13, can anyone tell me what's wrong?

.................................................. ...............EEEEEE
================================================== ====================
ERROR: test_cipher_mismatch (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 89,
in test_cipher_mismatch
ctx = SSL.Context()
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

================================================== ====================
ERROR: test_cipher_ok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line
115,
in test_cipher_ok
ctx = SSL.Context()
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

================================================== ====================
ERROR: test_no_such_cipher (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line
102,
in test_no_such_cipher
ctx = SSL.Context()
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

================================================== ====================
ERROR: test_server_simple (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 55,
in test_server_simple
ctx = SSL.Context()
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

================================================== ====================
ERROR: test_tls1_nok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 66,
in test_tls1_nok
ctx = SSL.Context('tlsv1')
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

================================================== ====================
ERROR: test_tls1_ok (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 78,
in test_tls1_ok
ctx = SSL.Context('tlsv1')
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type

----------------------------------------------------------------------

Thanks,

Morten

Dec 16 '05 #1
1 1687
morphex wrote:
I get the following messages running the testall.py script with
m2crypto 0.13, can anyone tell me what's wrong?
Those happened either because of SWIG or OpenSSL incompatibility. They
have been fixed since. Either get the latest release (0.15) or the fresh
bits from Subversion. This shows how to get those:
http://wiki.osafoundation.org/bin/vi...ts/MeTooCrypto


.................................................. ..............EEEEEE
================================================== ====================
ERROR: test_cipher_mismatch (test_ssl.SSLClientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 89,
in test_cipher_mismatch
ctx = SSL.Context()
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 41, in __init__
map()[self.ctx] = self
File
"/usr/local/lib/python2.3/site-packages/M2Crypto/SSL/Context.py",
line 20, in __setitem__
self.map[key] = value
TypeError: unhashable type


--
Heikki Toivonen
Dec 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Hallvard B Furuseth | last post: by
7 posts views Thread by Carl Waldbieser | last post: by
2 posts views Thread by Roberto | last post: by
5 posts views Thread by jsmilan | last post: by
5 posts views Thread by KW | last post: by
8 posts views Thread by John Nagle | last post: by
7 posts views Thread by John Nagle | last post: by
2 posts views Thread by Bojan Mihelac | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.