473,725 Members | 2,302 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_mis match (test_ssl.SSLCl ientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 89,
in test_cipher_mis match
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.SSLCl ientTestCase)
----------------------------------------------------------------------
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_ci pher (test_ssl.SSLCl ientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line
102,
in test_no_such_ci pher
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_sim ple (test_ssl.SSLCl ientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 55,
in test_server_sim ple
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.SSLCl ientTestCase)
----------------------------------------------------------------------
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('tl sv1')
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.SSLCl ientTestCase)
----------------------------------------------------------------------
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('tl sv1')
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 1811
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_mis match (test_ssl.SSLCl ientTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/packages/files/m2crypto-0.13/tests/test_ssl.py", line 89,
in test_cipher_mis match
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5610
by: Hallvard B Furuseth | last post by:
Does anyone know how I check the server certificate with M2Crypto? Currently a program I have inherited does this: #!/local/bin/python2.2 import xmlrpclib from M2Crypto.m2xmlrpclib import Server, SSL_Transport svr = Server('http://my.machine.no:8000', SSL_Transport(), encoding='iso8859-1') # TODO: check server certificate secret = svr.login('myuser', 'mypassword')
7
7182
by: Carl Waldbieser | last post by:
I tried to adapt the instructions for building the M2Crypto module (http://sandbox.rulemaker.net/ngps/m2/INSTALL.html) to build a version compatible with Python2.3, but I've had some mixed results. I actually got everything to build and install, but when I try to import M2Crypto-- well, here is a sample session: >>> import M2Crypto Traceback (most recent call last): File "<interactive input>", line 1, in ? File...
2
1927
by: Roberto | last post by:
Hi there, i'm trying to compile m2crypto-0.12-snap1 in the following environment: Mingw32 OpenSSL python 2.2 swig I have changed path correctly in setup.py and even tried to compile
5
2267
by: jsmilan | last post by:
Hi, all; I'm strictly an amateur developer who has dabbled in a half dozen languages on eight or nine systems over 20 years or so. I have never devoted the time or energy to thoroughly learn any one of them, so I have become a true JOATAMON (Jack Of All Trades And Master Of None). I apologize in advance for any truly newb sounding questions. I did Google for this in several places first (Zope.org, Gentoo forums, and Google UseNet...
5
4149
by: KW | last post by:
I'm trying to convert some PHP code using OpenSSL to Python and I'm stuck on openssl_sign() which uses an RSA private key to compute a signature. Example PHP code: $privkeyid = openssl_get_privatekey($priv_key, $key_pass); openssl_sign($data, $signature, $privkeyid); openssl_free_key($privkeyid); I've tried several permutations of the stuff in M2Crypto.EVP but I can't get it to work...
8
3285
by: John Nagle | last post by:
Here's a wierd problem: I have a little test case for M2Crypto, which just opens up SSL connections to web servers and reads their certificates. This works fine. But if I execute socket.setdefaulttimeout(5.0) so that the sockets don't wait too long if there's no SSL server, I get
8
2978
by: John Nagle | last post by:
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 ? DetailsPageBuilder.detailspage(kdbfile,ktemplatefile,url) # check and display domain or URL as web page File "./sitetruth/DetailsPageBuilder.py", line...
7
4242
by: John Nagle | last post by:
Back in March, I posted this: That was for M2Crypto 0.17. It's still broken in M2Crypto 0.18. And there's no RPM or Windows binary. Nobody actually uses this stuff, do they?
2
1834
by: Bojan Mihelac | last post by:
Hi all! I am trying to install M2Crypto to work on OSX10.5 apache (mod_python). Error I receive: Error was: dlopen(/Library/WebServer/eggs/M2Crypto-0.18.2-py2.5- macosx-10.5-i386.egg-tmp/M2Crypto/__m2crypto.so, 2): no suitable image found. Did find: /Library/WebServer/eggs/M2Crypto-0.18.2-py2.5-macosx-10.5-i386.egg- tmp/M2Crypto/__m2crypto.so: no matching architecture in universal
0
8882
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9398
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9098
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4777
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3216
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2627
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.