summaryrefslogtreecommitdiffstats
path: root/Modules/_ssl.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:44:31 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-24 22:44:31 (GMT)
commit7e00151e1f373a5032bea361f8110b4fa264a493 (patch)
treedf21f3108245d72c25309c9f42735355454594a8 /Modules/_ssl.c
parent86073dc3c2aaa5c9292bd63ccc1db4da10f712c9 (diff)
downloadcpython-7e00151e1f373a5032bea361f8110b4fa264a493.zip
cpython-7e00151e1f373a5032bea361f8110b4fa264a493.tar.gz
cpython-7e00151e1f373a5032bea361f8110b4fa264a493.tar.bz2
_ssl.c: strip trailing spaces
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r--Modules/_ssl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 4208cb0..1d7ddcb 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -205,7 +205,7 @@ typedef struct {
int npn_protocols_len;
#endif
#ifndef OPENSSL_NO_TLSEXT
- PyObject *set_hostname;
+ PyObject *set_hostname;
#endif
} PySSLContext;
@@ -1810,7 +1810,7 @@ context_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
self->npn_protocols = NULL;
#endif
#ifndef OPENSSL_NO_TLSEXT
- self->set_hostname = NULL;
+ self->set_hostname = NULL;
#endif
/* Defaults */
SSL_CTX_set_verify(self->ctx, SSL_VERIFY_NONE, NULL);
@@ -2463,7 +2463,7 @@ _servername_callback(SSL *s, int *al, void *args)
if (ssl_socket == Py_None) {
goto error;
}
-
+
if (servername == NULL) {
result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket,
Py_None, ssl_ctx, NULL);