Commit 7e00151e authored by Victor Stinner's avatar Victor Stinner

_ssl.c: strip trailing spaces

parent 86073dc3
...@@ -205,7 +205,7 @@ typedef struct { ...@@ -205,7 +205,7 @@ typedef struct {
int npn_protocols_len; int npn_protocols_len;
#endif #endif
#ifndef OPENSSL_NO_TLSEXT #ifndef OPENSSL_NO_TLSEXT
PyObject *set_hostname; PyObject *set_hostname;
#endif #endif
} PySSLContext; } PySSLContext;
...@@ -1810,7 +1810,7 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -1810,7 +1810,7 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
self->npn_protocols = NULL; self->npn_protocols = NULL;
#endif #endif
#ifndef OPENSSL_NO_TLSEXT #ifndef OPENSSL_NO_TLSEXT
self->set_hostname = NULL; self->set_hostname = NULL;
#endif #endif
/* Defaults */ /* Defaults */
SSL_CTX_set_verify(self->ctx, SSL_VERIFY_NONE, NULL); SSL_CTX_set_verify(self->ctx, SSL_VERIFY_NONE, NULL);
...@@ -2463,7 +2463,7 @@ _servername_callback(SSL *s, int *al, void *args) ...@@ -2463,7 +2463,7 @@ _servername_callback(SSL *s, int *al, void *args)
if (ssl_socket == Py_None) { if (ssl_socket == Py_None) {
goto error; goto error;
} }
if (servername == NULL) { if (servername == NULL) {
result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket, result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket,
Py_None, ssl_ctx, NULL); Py_None, ssl_ctx, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment