723c533
Account for SHA-256 signatures.
723c533
723c533
The test case uses OpenSSL’s default algorithm; the length 1243 corresponds to SHA-1, 1263 to SHA-256.
723c533
723c533
diff -up M2Crypto-0.21.1/tests/test_smime.py.sha256 M2Crypto-0.21.1/tests/test_smime.py
723c533
--- M2Crypto-0.21.1/tests/test_smime.py.sha256	2015-07-13 20:56:16.201862066 +0200
723c533
+++ M2Crypto-0.21.1/tests/test_smime.py	2015-07-13 20:56:30.465428800 +0200
723c533
@@ -219,7 +219,7 @@ class WriteLoadTestCase(unittest.TestCas
723c533
         buf = BIO.MemoryBuffer()
723c533
         assert SMIME.load_pkcs7(self.filename).write_der(buf) == 1
723c533
         s = buf.read()
723c533
-        assert len(s) in (1188, 1204, 1243), len(s)
723c533
+        assert len(s) in (1188, 1204, 1243, 1263), len(s)
723c533
         
723c533
     def test_load_pkcs7(self):
723c533
         assert SMIME.load_pkcs7(self.filename).type() == SMIME.PKCS7_SIGNED