Searched refs:ssl_socket (Results 1 – 2 of 2) sorted by relevance
3222 PyObject *ssl_socket; in _servername_callback() local3240 ssl_socket = Py_None; in _servername_callback()3242 ssl_socket = PyWeakref_GetObject(ssl->ssl_sock); in _servername_callback()3243 Py_INCREF(ssl_socket); in _servername_callback()3245 if (ssl_socket == Py_None) { in _servername_callback()3250 result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket, in _servername_callback()3266 result = PyObject_CallFunctionObjArgs(ssl_ctx->set_hostname, ssl_socket, in _servername_callback()3270 Py_DECREF(ssl_socket); in _servername_callback()3298 Py_DECREF(ssl_socket); in _servername_callback()
4289 PyObject *ssl_socket; in _servername_callback() local4312 ssl_socket = PyWeakref_GetObject(ssl->owner); in _servername_callback()4314 ssl_socket = PyWeakref_GetObject(ssl->Socket); in _servername_callback()4316 ssl_socket = (PyObject *) ssl; in _servername_callback()4318 Py_INCREF(ssl_socket); in _servername_callback()4319 if (ssl_socket == Py_None) in _servername_callback()4323 result = PyObject_CallFunctionObjArgs(ssl_ctx->set_sni_cb, ssl_socket, in _servername_callback()4345 ssl_ctx->set_sni_cb, ssl_socket, servername_str, in _servername_callback()4349 Py_DECREF(ssl_socket); in _servername_callback()4377 Py_DECREF(ssl_socket); in _servername_callback()