summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2018-05-12 07:43:07 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2018-05-12 07:43:07 -0400
commit373926ce8cb799c252dd98bf6f24e100f73689a8 (patch)
tree341ef8df3f80c7b6b352deddadab1dfc2d810c77
parent384264f4b99bf9411cc95f05ceccddf621834c2a (diff)
downloadpyopenssl-373926ce8cb799c252dd98bf6f24e100f73689a8.tar.gz
fixed tests that want SNI (#751)
-rw-r--r--tests/test_ssl.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 1d6bb9f..a5eb3db 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -1202,6 +1202,7 @@ class TestContext(object):
client.connect(("encrypted.google.com", 443))
clientSSL = Connection(context, client)
clientSSL.set_connect_state()
+ clientSSL.set_tlsext_host_name(b"encrypted.google.com")
clientSSL.do_handshake()
clientSSL.send(b"GET / HTTP/1.0\r\n\r\n")
assert clientSSL.recv(1024)