1
0
python-M2Crypto/0001-tests-test_ssl-use-ciphercuites-for-TLS1.3-cipher-in.patch
2019-03-07 13:24:45 +00:00

32 lines
1.1 KiB
Diff

From 862167880780c1b1219b6be3864ba587f0bdddba Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date: Sat, 2 Mar 2019 17:08:39 +0100
Subject: [PATCH] tests/test_ssl: use -ciphercuites for TLS1.3 cipher in
openssl1.1
The -cipher can not be used in OpenSSL 1.1.b+ for TLS1.3 cipher since
openssl upstream commit 1c31fe7eb093a ("Ignore cipher suites when
setting cipher list").
Use -ciphersuites for TLS1.3 cipher as documented.
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
tests/test_ssl.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -460,9 +460,10 @@ class MiscSSLClientTestCase(BaseSSLClien
def test_cipher_ok(self):
if OPENSSL111:
TCIPHER = 'TLS_AES_256_GCM_SHA384'
+ self.args = self.args + ['-ciphersuites', TCIPHER]
else:
TCIPHER = 'AES128-SHA'
- self.args = self.args + ['-cipher', TCIPHER]
+ self.args = self.args + ['-cipher', TCIPHER]
pid = self.start_server(self.args)
try: