aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-11-03 08:08:34 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-11-03 08:23:19 +1300
commit5109fd8ecb3e2b6b5c15ab07fc98d354c240b842 (patch)
tree73f9a1df8602beaf3581ed1a06ce0f846574784b /test
parentd4f4beb6c7e9a0145f8affc6053ee01330f6f3be (diff)
downloadmitmproxy-5109fd8ecb3e2b6b5c15ab07fc98d354c240b842.tar.gz
mitmproxy-5109fd8ecb3e2b6b5c15ab07fc98d354c240b842.tar.bz2
mitmproxy-5109fd8ecb3e2b6b5c15ab07fc98d354c240b842.zip
Change antiquated test cipher suites
This breaks Travis, possibly due to OpenSSL version.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/net/test_tcp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mitmproxy/net/test_tcp.py b/test/mitmproxy/net/test_tcp.py
index 151cb12b..3238ab2f 100644
--- a/test/mitmproxy/net/test_tcp.py
+++ b/test/mitmproxy/net/test_tcp.py
@@ -380,14 +380,14 @@ class TestSNI(tservers.ServerTestBase):
class TestServerCipherList(tservers.ServerTestBase):
handler = ClientCipherListHandler
ssl = dict(
- cipher_list='RC4-SHA'
+ cipher_list='AES256-GCM-SHA384'
)
def test_echo(self):
c = tcp.TCPClient(("127.0.0.1", self.port))
with c.connect():
c.convert_to_ssl(sni="foo.com")
- assert c.rfile.readline() == b"['RC4-SHA']"
+ assert c.rfile.readline() == b"['AES256-GCM-SHA384']"
class TestServerCurrentCipher(tservers.ServerTestBase):
@@ -400,14 +400,14 @@ class TestServerCurrentCipher(tservers.ServerTestBase):
self.wfile.flush()
ssl = dict(
- cipher_list='RC4-SHA'
+ cipher_list='AES256-GCM-SHA384'
)
def test_echo(self):
c = tcp.TCPClient(("127.0.0.1", self.port))
with c.connect():
c.convert_to_ssl(sni="foo.com")
- assert b"RC4-SHA" in c.rfile.readline()
+ assert b'AES256-GCM-SHA384' in c.rfile.readline()
class TestServerCipherListError(tservers.ServerTestBase):