Lines Matching refs:wssl
94 ctx->wssl.ctx = wolfSSL_CTX_new(wolfTLSv1_3_client_method()); in wssl_init_ctx()
95 if(!ctx->wssl.ctx) { in wssl_init_ctx()
106 wolfSSL_CTX_set_default_verify_paths(ctx->wssl.ctx); in wssl_init_ctx()
108 if(wolfSSL_CTX_set_cipher_list(ctx->wssl.ctx, conn_config->cipher_list13 ? in wssl_init_ctx()
118 if(wolfSSL_CTX_set1_groups_list(ctx->wssl.ctx, conn_config->curves ? in wssl_init_ctx()
130 wolfSSL_CTX_set_keylog_callback(ctx->wssl.ctx, keylog_callback); in wssl_init_ctx()
142 wolfSSL_CTX_set_verify(ctx->wssl.ctx, SSL_VERIFY_PEER, NULL); in wssl_init_ctx()
147 wolfSSL_CTX_load_verify_locations_ex(ctx->wssl.ctx, ssl_cafile, in wssl_init_ctx()
166 wolfSSL_CTX_set_default_verify_paths(ctx->wssl.ctx); in wssl_init_ctx()
171 wolfSSL_CTX_set_verify(ctx->wssl.ctx, SSL_VERIFY_NONE, NULL); in wssl_init_ctx()
177 result = (*data->set.ssl.fsslctx)(data, ctx->wssl.ctx, in wssl_init_ctx()
188 if(result && ctx->wssl.ctx) { in wssl_init_ctx()
189 SSL_CTX_free(ctx->wssl.ctx); in wssl_init_ctx()
190 ctx->wssl.ctx = NULL; in wssl_init_ctx()
206 DEBUGASSERT(!ctx->wssl.handle); in wssl_init_ssl()
207 DEBUGASSERT(ctx->wssl.ctx); in wssl_init_ssl()
208 ctx->wssl.handle = wolfSSL_new(ctx->wssl.ctx); in wssl_init_ssl()
210 wolfSSL_set_app_data(ctx->wssl.handle, user_data); in wssl_init_ssl()
211 wolfSSL_set_connect_state(ctx->wssl.handle); in wssl_init_ssl()
212 wolfSSL_set_quic_use_legacy_codepoint(ctx->wssl.handle, 0); in wssl_init_ssl()
215 wolfSSL_set_alpn_protos(ctx->wssl.handle, (const unsigned char *)alpn, in wssl_init_ssl()
219 wolfSSL_UseSNI(ctx->wssl.handle, WOLFSSL_SNI_HOST_NAME, in wssl_init_ssl()
224 (void)wssl_setup_session(cf, data, &ctx->wssl, peer); in wssl_init_ssl()
275 if(ctx->wssl.handle) in Curl_vquic_tls_cleanup()
276 wolfSSL_free(ctx->wssl.handle); in Curl_vquic_tls_cleanup()
277 if(ctx->wssl.ctx) in Curl_vquic_tls_cleanup()
278 wolfSSL_CTX_free(ctx->wssl.ctx); in Curl_vquic_tls_cleanup()
295 if(!ctx->wssl.x509_store_setup) { in Curl_vquic_tls_before_recv()
296 CURLcode result = Curl_wssl_setup_x509_store(cf, data, &ctx->wssl); in Curl_vquic_tls_before_recv()
339 WOLFSSL_X509* cert = wolfSSL_get_peer_certificate(ctx->wssl.handle); in Curl_vquic_tls_verify_peer()