Lines Matching refs:ssl

215   SSL *ssl;  member
229 DEBUGASSERT(!s->ssl); in cf_osslq_stream_open()
231 s->ssl = SSL_new_stream(conn, flags); in cf_osslq_stream_open()
232 if(!s->ssl) { in cf_osslq_stream_open()
235 s->id = (curl_int64_t)SSL_get_stream_id(s->ssl); in cf_osslq_stream_open()
236 SSL_set_app_data(s->ssl, user_data); in cf_osslq_stream_open()
242 if(s->ssl) { in cf_osslq_stream_cleanup()
243 SSL_set_app_data(s->ssl, NULL); in cf_osslq_stream_cleanup()
244 SSL_free(s->ssl); in cf_osslq_stream_cleanup()
252 if(s->ssl) { in cf_osslq_stream_close()
253 SSL_free(s->ssl); in cf_osslq_stream_close()
254 s->ssl = NULL; in cf_osslq_stream_close()
355 rc = SSL_shutdown_ex(ctx->tls.ossl.ssl, in cf_osslq_shutdown()
370 int err = SSL_get_error(ctx->tls.ossl.ssl, rc); in cf_osslq_shutdown()
412 if(ctx && ctx->tls.ossl.ssl) { in cf_osslq_close()
416 SSL_shutdown_ex(ctx->tls.ossl.ssl, in cf_osslq_close()
436 if(ctx->tls.ossl.ssl) in cf_osslq_destroy()
464 nstream->ssl = stream_ssl; in cf_osslq_h3conn_add_stream()
503 lerr = SSL_get_verify_result(ctx->tls.ossl.ssl); in cf_osslq_ssl_err()
949 if(!stream || !stream->s.ssl) in cb_h3_stop_sending()
968 if(stream && stream->s.ssl) { in cb_h3_reset_stream()
971 rv = !SSL_stream_reset(stream->s.ssl, &args, sizeof(args)); in cb_h3_reset_stream()
1216 if(!SSL_set1_initial_peer_addr(ctx->tls.ossl.ssl, baddr)) { in cf_osslq_ctx_start()
1221 if(!SSL_set_blocking_mode(ctx->tls.ossl.ssl, 0)) { in cf_osslq_ctx_start()
1229 if(!SSL_set_feature_request_uint(ctx->tls.ossl.ssl, in cf_osslq_ctx_start()
1238 SSL_set_bio(ctx->tls.ossl.ssl, bio, bio); in cf_osslq_ctx_start()
1240 SSL_set_connect_state(ctx->tls.ossl.ssl); in cf_osslq_ctx_start()
1241 SSL_set_incoming_stream_policy(ctx->tls.ossl.ssl, in cf_osslq_ctx_start()
1244 result = cf_osslq_h3conn_init(ctx, ctx->tls.ossl.ssl, cf); in cf_osslq_ctx_start()
1270 rv = SSL_read_ex(x->s->ssl, buf, len, &nread); in h3_quic_recv()
1272 int detail = SSL_get_error(x->s->ssl, rv); in h3_quic_recv()
1283 else if(SSL_get_stream_read_state(x->s->ssl) == in h3_quic_recv()
1286 SSL_get_stream_read_error_code(x->s->ssl, &app_error_code); in h3_quic_recv()
1322 while(s->ssl && !s->closed && !eagain && in cf_osslq_stream_recv()
1366 if(!SSL_get_stream_read_error_code(s->ssl, &app_error)) { in cf_osslq_stream_recv()
1408 if(!ctx->tls.ossl.ssl) in cf_progress_ingress()
1415 SSL *snew = SSL_accept_stream(ctx->tls.ossl.ssl, in cf_progress_ingress()
1423 if(!SSL_handle_events(ctx->tls.ossl.ssl)) { in cf_progress_ingress()
1424 int detail = SSL_get_error(ctx->tls.ossl.ssl, 0); in cf_progress_ingress()
1474 if(stream && stream->s.ssl && stream->s.send_blocked && in cf_osslq_check_and_unblock()
1475 !SSL_want_write(stream->s.ssl)) { in cf_osslq_check_and_unblock()
1493 if(!ctx->tls.ossl.ssl || !ctx->h3.conn) in h3_send_streams()
1537 ok = !s->ssl || SSL_write_ex2(s->ssl, vec[i].base, vec[i].len, flags, in h3_send_streams()
1549 int detail = SSL_get_error(s->ssl, 0); in h3_send_streams()
1594 SSL_stream_conclude(s->ssl, 0); in h3_send_streams()
1609 if(!ctx->tls.ossl.ssl) in cf_progress_egress()
1617 if(!SSL_handle_events(ctx->tls.ossl.ssl)) { in cf_progress_egress()
1618 int detail = SSL_get_error(ctx->tls.ossl.ssl, 0); in cf_progress_egress()
1638 if(ctx->tls.ossl.ssl && in check_and_set_expiry()
1639 SSL_get_event_timeout(ctx->tls.ossl.ssl, &tv, &is_infinite) && in check_and_set_expiry()
1650 if(SSL_get_event_timeout(ctx->tls.ossl.ssl, &tv, &is_infinite)) { in check_and_set_expiry()
1689 if(!ctx->tls.ossl.ssl) { in cf_osslq_connect()
1713 err = SSL_do_handshake(ctx->tls.ossl.ssl); in cf_osslq_connect()
1731 int detail = SSL_get_error(ctx->tls.ossl.ssl, err); in cf_osslq_connect()
1761 if(result == CURLE_RECV_ERROR && ctx->tls.ossl.ssl && in cf_osslq_connect()
1850 *err = cf_osslq_stream_open(&stream->s, ctx->tls.ossl.ssl, 0, in h3_stream_open()
1930 DEBUGASSERT(ctx->tls.ossl.ssl); in cf_osslq_send()
2045 DEBUGASSERT(ctx->tls.ossl.ssl); in cf_osslq_recv()
2183 if(!ctx->tls.ossl.ssl) in cf_osslq_conn_is_alive()
2191 if(!SSL_get_value_uint(ctx->tls.ossl.ssl, in cf_osslq_conn_is_alive()
2232 if(!ctx->tls.ossl.ssl) { in cf_osslq_adjust_pollset()
2239 SSL_net_read_desired(ctx->tls.ossl.ssl), in cf_osslq_adjust_pollset()
2240 SSL_net_write_desired(ctx->tls.ossl.ssl)); in cf_osslq_adjust_pollset()
2249 SSL_net_read_desired(ctx->tls.ossl.ssl), in cf_osslq_adjust_pollset()
2250 SSL_net_write_desired(ctx->tls.ossl.ssl)); in cf_osslq_adjust_pollset()
2270 if(!SSL_get_value_uint(ctx->tls.ossl.ssl, SSL_VALUE_CLASS_GENERIC, in cf_osslq_query()