Lines Matching refs:server_hostname
467 PyObject *server_hostname; member
660 sslsock->server_hostname in fill_and_set_sslerror()
668 sslsock->server_hostname in fill_and_set_sslerror()
864 _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname) in _ssl_configure_hostname() argument
871 assert(server_hostname); in _ssl_configure_hostname()
877 len = strlen(server_hostname); in _ssl_configure_hostname()
878 if (len == 0 || *server_hostname == '.') { in _ssl_configure_hostname()
887 ip = a2i_IPADDRESS(server_hostname); in _ssl_configure_hostname()
892 hostname = PyUnicode_Decode(server_hostname, len, "ascii", "strict"); in _ssl_configure_hostname()
896 self->server_hostname = hostname; in _ssl_configure_hostname()
900 if (!SSL_set_tlsext_host_name(self->ssl, server_hostname)) { in _ssl_configure_hostname()
908 if (!X509_VERIFY_PARAM_set1_host(param, server_hostname, in _ssl_configure_hostname()
909 strlen(server_hostname))) { in _ssl_configure_hostname()
932 char *server_hostname, in newPySSLSocket() argument
950 self->server_hostname = NULL; in newPySSLSocket()
1001 if (server_hostname != NULL) { in newPySSLSocket()
1002 if (_ssl_configure_hostname(self, server_hostname) < 0) { in newPySSLSocket()
2236 if (self->server_hostname == NULL) in PySSL_get_server_hostname()
2238 Py_INCREF(self->server_hostname); in PySSL_get_server_hostname()
2239 return self->server_hostname; in PySSL_get_server_hostname()
2296 Py_XDECREF(self->server_hostname); in PySSL_dealloc()