m2crypto/CVE-2020-25657-pre3.patch
starlet-dx 6cb405ce6f Fix CVE-2020-25657
(cherry picked from commit b32f1d4be1dc6c88e8c2ae083740acce38bf44c2)
2022-08-17 17:41:38 +08:00

27 lines
988 B
Diff

From 3ee65bd56e92f8f3c465947b6752d92d5986dc81 Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date: Sat, 8 Jun 2019 14:13:59 +0000
Subject: [PATCH] tests.test_rsa: Fix typo to match for proper exception
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
M2Crypto-0.30.1/tests/test_rsa.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/M2Crypto-0.30.1/tests/test_rsa.py b/M2Crypto-0.30.1/tests/test_rsa.py
index 7028b608..a1d0805f 100644
--- a/M2Crypto-0.30.1/tests/test_rsa.py
+++ b/M2Crypto-0.30.1/tests/test_rsa.py
@@ -130,7 +130,7 @@ class RSATestCase(unittest.TestCase):
self.assertEqual(res, self.data)
# no_padding
- with six.assertRaisesRegex(self, TypeError, 'data too small'):
+ with six.assertRaisesRegex(self, RSA.RSAError, 'data too small'):
priv.public_encrypt(self.data, RSA.no_padding)
# Type-check the data to be encrypted.
--
GitLab