diff options
author | Casey Deccio <casey@deccio.net> | 2020-11-20 17:27:25 -0700 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2020-11-21 10:27:35 +0100 |
commit | e64968e41383436c4be809b3c8706270734ca9d8 (patch) | |
tree | 1c065fc5dead11d7e9124a8db38d24f4bf1d6462 /tests | |
parent | a215adf5dc696c9e8fba6753e210648958d1b401 (diff) | |
download | m2crypto-e64968e41383436c4be809b3c8706270734ca9d8.tar.gz |
Only use DigestSign() and DigestUpdate() with OpenSSL >= 1.1.1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_evp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_evp.py b/tests/test_evp.py index c98b50c..7ef889e 100644 --- a/tests/test_evp.py +++ b/tests/test_evp.py @@ -274,6 +274,8 @@ class EVPTestCase(unittest.TestCase): pkey.digest_verify_init() self.assertEqual(pkey.digest_verify(sig, b'test message not'), 0) + @unittest.skipIf(m2.OPENSSL_VERSION_NUMBER < 0x90800F or m2.OPENSSL_NO_EC != 0, + 'Relies on support for EC') def test_digest_verify_final(self): pkey = EVP.load_key('tests/ec.priv.pem') pkey.reset_context('sha256') |