Home
last modified time | relevance | path

Searched refs:ssl_socket (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Modules/_ssl/
Ddebughelpers.c18 PyObject *ssl_socket = NULL; /* ssl.SSLSocket or ssl.SSLObject */ in _PySSL_msg_callback() local
30 ssl_socket = PyWeakref_GetObject(ssl_obj->owner); in _PySSL_msg_callback()
32 ssl_socket = PyWeakref_GetObject(ssl_obj->Socket); in _PySSL_msg_callback()
34 ssl_socket = (PyObject *)ssl_obj; in _PySSL_msg_callback()
35 Py_INCREF(ssl_socket); in _PySSL_msg_callback()
71 ssl_socket, write_p ? "write" : "read", in _PySSL_msg_callback()
80 Py_XDECREF(ssl_socket); in _PySSL_msg_callback()
/external/python/cpython2/Modules/
D_ssl.c3222 PyObject *ssl_socket; in _servername_callback() local
3240 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()
/external/python/cpython3/Modules/
D_ssl.c4500 PyObject *ssl_socket; in _servername_callback() local
4523 ssl_socket = PyWeakref_GetObject(ssl->owner); in _servername_callback()
4525 ssl_socket = PyWeakref_GetObject(ssl->Socket); in _servername_callback()
4527 ssl_socket = (PyObject *) ssl; in _servername_callback()
4529 Py_INCREF(ssl_socket); in _servername_callback()
4530 if (ssl_socket == Py_None) in _servername_callback()
4534 result = PyObject_CallFunctionObjArgs(ssl_ctx->set_sni_cb, ssl_socket, in _servername_callback()
4557 ssl_ctx->set_sni_cb, ssl_socket, servername_str, in _servername_callback()
4561 Py_DECREF(ssl_socket); in _servername_callback()
4589 Py_DECREF(ssl_socket); in _servername_callback()