From 24dfb333d9282289d7010eee26f16b6612d8347c Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Wed, 4 May 2011 18:10:26 -0400 Subject: Adjust another test to account for another changed hash algorithm in OpenSSL 1.0.0 --- OpenSSL/test/test_ssl.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/OpenSSL/test/test_ssl.py b/OpenSSL/test/test_ssl.py index 99aa6fb..ff2e725 100644 --- a/OpenSSL/test/test_ssl.py +++ b/OpenSSL/test/test_ssl.py @@ -558,12 +558,14 @@ class ContextTests(TestCase, _LoopbackMixin): """ capath = self.mktemp() makedirs(capath) - # Hash value computed manually with c_rehash to avoid depending on - # c_rehash in the test suite. - cafile = join(capath, 'c7adac82.0') - fObj = open(cafile, 'w') - fObj.write(cleartextCertificatePEM.decode('ascii')) - fObj.close() + # Hash values computed manually with c_rehash to avoid depending on + # c_rehash in the test suite. One is from OpenSSL 0.9.8, the other + # from OpenSSL 1.0.0. + for name in ['c7adac82.0', 'c3705638.0']: + cafile = join(capath, name) + fObj = open(cafile, 'w') + fObj.write(cleartextCertificatePEM.decode('ascii')) + fObj.close() self._load_verify_locations_test(None, capath) -- cgit v1.2.1