Lines Matching defs:ssl
56 SSL *ssl = SSL_SSL_from_mbedtls_ssl_context(mbedtls_ctx);
63 * We can only get ssl accepted connections by using a vhost's ssl_ctx
70 vh->tls.ssl_ctx == SSL_get_SSL_CTX(ssl))
98 /* select the ssl ctx from the selected vhost for this conn */
99 SSL_set_SSL_CTX(ssl, vhost->tls.ssl_ctx);
195 lwsl_err("problem creating ssl context\n");
249 wsi->tls.ssl = SSL_new(wsi->a.vhost->tls.ssl_ctx);
250 if (wsi->tls.ssl == NULL) {
257 SSL_set_fd(wsi->tls.ssl, (int)accept_fd);
260 SSL_set_info_callback(wsi->tls.ssl, lws_ssl_info_callback);
262 SSL_set_sni_callback(wsi->tls.ssl, lws_mbedtls_sni_cb, wsi->a.context);
273 SSL_free(wsi->tls.ssl);
284 n = SSL_accept(wsi->tls.ssl);
307 m = SSL_get_error(wsi->tls.ssl, n);
328 if (m == SSL_ERROR_WANT_READ || SSL_want_read(wsi->tls.ssl)) {
338 if (m == SSL_ERROR_WANT_WRITE || SSL_want_write(wsi->tls.ssl)) {