diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-28 09:57:33 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-28 09:57:33 +1200 |
commit | bae86480d49eac9d776872bdcf92c0c42aaff24f (patch) | |
tree | 9c1464e91de790696336158e1d48d6707d229305 /test/test_tcp.py | |
parent | 92c7d38bd343a0436d73c0a984fe111996e15059 (diff) | |
parent | a1491a6ae037b7874dd71de11f5cd43e10aa46e7 (diff) | |
download | mitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.tar.gz mitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.tar.bz2 mitmproxy-bae86480d49eac9d776872bdcf92c0c42aaff24f.zip |
Merge branch 'master' of github.com:cortesi/netlib
Diffstat (limited to 'test/test_tcp.py')
-rw-r--r-- | test/test_tcp.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_tcp.py b/test/test_tcp.py index a2ee5e36..969daf1e 100644 --- a/test/test_tcp.py +++ b/test/test_tcp.py @@ -1,5 +1,5 @@ import cStringIO, threading, Queue -from netlib import tcp +from netlib import tcp, certutils import tutils class ServerThread(threading.Thread): @@ -110,6 +110,9 @@ class TestServerSSL(ServerTestBase): c.wfile.flush() assert c.rfile.readline() == testval + def test_get_remote_cert(self): + assert certutils.get_remote_cert("127.0.0.1", self.port, None).digest("sha1") + class TestSNI(ServerTestBase): @classmethod |