Lines Matching refs:tls
47 SSL_CTX_set_verify(vh->tls.ssl_ctx, verify_options, NULL);
70 vh->tls.ssl_ctx == SSL_get_SSL_CTX(ssl))
91 if (!vhost->tls.ssl_ctx) {
99 SSL_set_SSL_CTX(ssl, vhost->tls.ssl_ctx);
156 err = SSL_CTX_use_certificate_ASN1(vhost->tls.ssl_ctx, (int)flen, p);
171 err = SSL_CTX_use_PrivateKey_ASN1(0, vhost->tls.ssl_ctx, p, (long)flen);
179 vhost->tls.skipped_certs = 0;
193 vhost->tls.ssl_ctx = SSL_CTX_new(method, &vhost->context->mcdc); /* create context */
194 if (!vhost->tls.ssl_ctx) {
199 if (!vhost->tls.use_ssl ||
214 if (SSL_CTX_add_client_CA_ASN1(vhost->tls.ssl_ctx, (int)flen, p) != 1) {
223 SSL_CTX_add_client_CA_ASN1(vhost->tls.ssl_ctx,
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);
259 if (wsi->a.vhost->tls.ssl_info_event_mask)
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);
270 if (wsi->tls.use_ssl)
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)) {
355 * tls-sni-01 cert from OpenSSL that worked on Let's Encrypt, and just replace
358 * This will need redoing for tls-sni-02...
427 /* 78 bytes of SAN (tls-sni-01)
554 n = SSL_CTX_use_certificate_ASN1(vhost->tls.ssl_ctx,
565 n = SSL_CTX_use_PrivateKey_ASN1(0, vhost->tls.ssl_ctx,