Lines Matching refs:tls
313 if (!http || !http->tls || !credentials) in httpCopyCredentials()
317 certs = gnutls_certificate_get_peers(http->tls, &count); in httpCopyCredentials()
1162 return (gnutls_record_check_pending(http->tls)); in _httpTLSPending()
1178 result = gnutls_record_recv(http->tls, buf, (size_t)len); in _httpTLSRead()
1301 status = gnutls_init(&http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_CLIENT : GNUTLS_SERVER); in _httpTLSStart()
1303 status = gnutls_set_default_priority(http->tls); in _httpTLSStart()
1313 gnutls_deinit(http->tls); in _httpTLSStart()
1316 http->tls = NULL; in _httpTLSStart()
1343 status = gnutls_server_name_set(http->tls, GNUTLS_NAME_DNS, hostname, strlen(hostname)); in _httpTLSStart()
1507 status = gnutls_credentials_set(http->tls, GNUTLS_CRD_CERTIFICATE, *credentials); in _httpTLSStart()
1517 gnutls_deinit(http->tls); in _httpTLSStart()
1520 http->tls = NULL; in _httpTLSStart()
1573 gnutls_priority_set_direct(http->tls, priority_string, NULL); in _httpTLSStart()
1579 gnutls_priority_set(http->tls, priority); in _httpTLSStart()
1583 gnutls_transport_set_ptr(http->tls, (gnutls_transport_ptr_t)http); in _httpTLSStart()
1584 gnutls_transport_set_pull_function(http->tls, http_gnutls_read); in _httpTLSStart()
1586 gnutls_transport_set_pull_timeout_function(http->tls, (gnutls_pull_timeout_func)httpWait); in _httpTLSStart()
1588 gnutls_transport_set_push_function(http->tls, http_gnutls_write); in _httpTLSStart()
1608 while ((status = gnutls_handshake(http->tls)) != GNUTLS_E_SUCCESS) in _httpTLSStart()
1620 gnutls_deinit(http->tls); in _httpTLSStart()
1623 http->tls = NULL; in _httpTLSStart()
1653 …error = gnutls_bye(http->tls, http->mode == _HTTP_MODE_CLIENT ? GNUTLS_SHUT_RDWR : GNUTLS_SHUT_WR); in _httpTLSStop()
1657 gnutls_deinit(http->tls); in _httpTLSStop()
1658 http->tls = NULL; in _httpTLSStop()
1683 result = gnutls_record_send(http->tls, buf, (size_t)len); in _httpTLSWrite()