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

26 lines
916 B
Diff

From 83d4d9bc3aa4466e540fa00f8cc6891c0301ec82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= <mcepl@cepl.eu>
Date: Fri, 31 May 2019 17:00:14 +0200
Subject: [PATCH] Remove duplicate call of the error code.
---
M2Crypto-0.30.1/tests/test_rsa.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/M2Crypto-0.30.1/tests/test_rsa.py b/M2Crypto-0.30.1/tests/test_rsa.py
index 308b1b18..875b59c6 100644
--- a/M2Crypto-0.30.1/tests/test_rsa.py
+++ b/M2Crypto-0.30.1/tests/test_rsa.py
@@ -126,8 +126,6 @@ class RSATestCase(unittest.TestCase):
ctxt = priv.public_encrypt(self.data, RSA.sslv23_padding)
with self.assertRaises(RSA.RSAError):
priv.private_decrypt(ctxt, RSA.sslv23_padding)
- with self.assertRaises(RSA.RSAError):
- priv.private_decrypt(ctxt, RSA.sslv23_padding)
# no_padding
with self.assertRaises(RSA.RSAError):
--
GitLab