3734aed
diff -up M2Crypto-0.21.1/tests/test_x509.py.x509_name M2Crypto-0.21.1/tests/test_x509.py
3734aed
--- M2Crypto-0.21.1/tests/test_x509.py.x509_name	2014-06-09 17:15:56.649087188 +0200
3734aed
+++ M2Crypto-0.21.1/tests/test_x509.py	2014-06-09 21:29:43.516145260 +0200
3734aed
@@ -142,7 +142,9 @@ class X509TestCase(unittest.TestCase):
3734aed
         cn.set_data("Hello There!")
3734aed
         assert cn.get_data().as_text() == "Hello There!", cn.get_data().as_text()
3734aed
 
3734aed
-        assert n.as_hash() == 1697185131
3734aed
+        # OpenSSL 1.0.1h switched from encoding strings as PRINTABLESTRING (the
3734aed
+        # first hash value) to UTF8STRING (the second one) 
3734aed
+        assert n.as_hash() in (1697185131, 1370641112), n.as_hash()
3734aed
         
3734aed
         self.assertRaises(IndexError, lambda: n[100])
3734aed
         self.assert_(n[10])