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 | 31aa69ead58c53ef670ae45debbcd07e3c099d0b (patch) | |
tree | c357bb434acd1d6e39b6a6e70243071244afb3d0 /Modules/_ssl.c | |
parent | 88922db77568ead498631379ff87c07a22529b7f (diff) | |
download | cpython-git-31aa69ead58c53ef670ae45debbcd07e3c099d0b.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, |