diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-23 20:13:31 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-23 20:13:31 -0600 |
commit | 4d14fa1870841a36b2effab760bbaa52ac072d2a (patch) | |
tree | 98c30ef6594af693d4fe7bac3e46421e07989ebb /Modules/_ssl.c | |
parent | d743aa6022082616462064b56606a282afe0efb6 (diff) | |
download | cpython-4d14fa1870841a36b2effab760bbaa52ac072d2a.tar.gz |
allow hostname to be passed to SSLContext even if OpenSSL doesn't support SNI (closes #22921)
Patch from Donald Stufft.
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 1638ebe3b6..8ee8c3d149 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2824,12 +2824,6 @@ context_wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwds) &sock, &server_side, "idna", &hostname, &ssl_sock)) return NULL; -#if !HAVE_SNI - PyMem_Free(hostname); - PyErr_SetString(PyExc_ValueError, "server_hostname is not supported " - "by your OpenSSL library"); - return NULL; -#endif } res = (PyObject *) newPySSLSocket(self, sock, server_side, |