• Home
  • Raw
  • Download

Lines Matching refs:tls

35 	if (vhost->tls.ssl_ctx)  in lws_ssl_destroy()
36 SSL_CTX_free(vhost->tls.ssl_ctx); in lws_ssl_destroy()
37 if (!vhost->tls.user_supplied_ssl_ctx && vhost->tls.ssl_client_ctx) in lws_ssl_destroy()
38 SSL_CTX_free(vhost->tls.ssl_client_ctx); in lws_ssl_destroy()
40 if (vhost->tls.x509_client_CA) in lws_ssl_destroy()
41 X509_free(vhost->tls.x509_client_CA); in lws_ssl_destroy()
51 if (!wsi->tls.ssl) in lws_ssl_capable_read()
55 n = SSL_read(wsi->tls.ssl, buf, (int)len); in lws_ssl_capable_read()
72 m = SSL_get_error(wsi->tls.ssl, n); in lws_ssl_capable_read()
87 if (m == SSL_ERROR_WANT_READ || SSL_want_read(wsi->tls.ssl)) { in lws_ssl_capable_read()
92 if (m == SSL_ERROR_WANT_WRITE || SSL_want_write(wsi->tls.ssl)) { in lws_ssl_capable_read()
136 if (!wsi->tls.ssl) in lws_ssl_capable_read()
139 if (SSL_pending(wsi->tls.ssl)) { in lws_ssl_capable_read()
140 if (lws_dll2_is_detached(&wsi->tls.dll_pending_tls)) in lws_ssl_capable_read()
141 lws_dll2_add_head(&wsi->tls.dll_pending_tls, in lws_ssl_capable_read()
142 &pt->tls.dll_pending_tls_owner); in lws_ssl_capable_read()
156 if (!wsi->tls.ssl) in lws_ssl_pending()
159 return SSL_pending(wsi->tls.ssl); in lws_ssl_pending()
177 if (!wsi->tls.ssl) in lws_ssl_capable_write()
180 n = SSL_write(wsi->tls.ssl, buf, (int)len); in lws_ssl_capable_write()
190 m = SSL_get_error(wsi->tls.ssl, n); in lws_ssl_capable_write()
192 if (m == SSL_ERROR_WANT_READ || SSL_want_read(wsi->tls.ssl)) { in lws_ssl_capable_write()
198 if (m == SSL_ERROR_WANT_WRITE || SSL_want_write(wsi->tls.ssl)) { in lws_ssl_capable_write()
236 if (!(where & wsi->a.vhost->tls.ssl_info_event_mask)) in lws_ssl_info_callback()
254 if (!wsi->tls.ssl) in lws_ssl_close()
261 if (wsi->a.vhost->tls.ssl_info_event_mask) in lws_ssl_close()
262 SSL_set_info_callback(wsi->tls.ssl, NULL); in lws_ssl_close()
266 lws_sul_cancel(&wsi->tls.sul_cb_synth); in lws_ssl_close()
271 lws_sess_cache_synth_cb(&wsi->tls.sul_cb_synth); in lws_ssl_close()
274 n = SSL_get_fd(wsi->tls.ssl); in lws_ssl_close()
276 SSL_shutdown(wsi->tls.ssl); in lws_ssl_close()
278 SSL_free(wsi->tls.ssl); in lws_ssl_close()
279 wsi->tls.ssl = NULL; in lws_ssl_close()
289 if (vhost->tls.ssl_ctx) in lws_ssl_SSL_CTX_destroy()
290 SSL_CTX_free(vhost->tls.ssl_ctx); in lws_ssl_SSL_CTX_destroy()
292 if (!vhost->tls.user_supplied_ssl_ctx && vhost->tls.ssl_client_ctx) in lws_ssl_SSL_CTX_destroy()
293 SSL_CTX_free(vhost->tls.ssl_client_ctx); in lws_ssl_SSL_CTX_destroy()
307 if (!wsi->tls.ssl) in lws_tls_ctx_from_wsi()
310 return SSL_get_SSL_CTX(wsi->tls.ssl); in lws_tls_ctx_from_wsi()
316 int n = SSL_shutdown(wsi->tls.ssl); in __lws_tls_shutdown()
330 n = SSL_get_error(wsi->tls.ssl, n); in __lws_tls_shutdown()
332 if (SSL_want_read(wsi->tls.ssl)) { in __lws_tls_shutdown()
337 if (SSL_want_write(wsi->tls.ssl)) { in __lws_tls_shutdown()