diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-23 23:06:39 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-23 23:06:39 (GMT) |
commit | f9284ae8ede5b8977248a4259eee0cd81a100c16 (patch) | |
tree | b3430fd55e6b76ee01dfd6ac4a0baa52de7b7a3a /Modules/_ssl.c | |
parent | f1a3240ba86408a2cdb88a2bfa38a2dce1f4ed9c (diff) | |
parent | 7243b574e5fc6f9ae68dc5ebd8252047b8e78e3b (diff) | |
download | cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.zip cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.tar.gz cpython-f9284ae8ede5b8977248a4259eee0cd81a100c16.tar.bz2 |
merge 3.4 (#22921)
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index bf0eeff..de9a5b4 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2922,12 +2922,6 @@ context_wrap_socket(PySSLContext *self, PyObject *args, PyObject *kwds) &sock, &server_side, "idna", &hostname)) 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, hostname, @@ -2955,14 +2949,8 @@ context_wrap_bio(PySSLContext *self, PyObject *args, PyObject *kwds) &server_side, &hostname_obj)) return NULL; if (hostname_obj != Py_None) { -#if HAVE_SNI if (!PyArg_Parse(hostname_obj, "et", "idna", &hostname)) return NULL; -#else - PyErr_SetString(PyExc_ValueError, "server_hostname is not supported " - "by your OpenSSL library"); - return NULL; -#endif } res = (PyObject *) newPySSLSocket(self, NULL, server_side, hostname, |