Lines Matching refs:args
23 QUIC_TLS_ARGS args; member
182 if (!rl->qtls->args.yield_secret_cb(enc_level, qdir, suite_id, in quic_new_record_layer()
184 rl->qtls->args.yield_secret_cb_arg)) { in quic_new_record_layer()
303 if (!rl->qtls->args.alert_cb(rl->qtls->args.alert_cb_arg, alert)) { in quic_write_records()
314 if (!rl->qtls->args.crypto_send_cb(template->buf + rl->written, in quic_write_records()
317 rl->qtls->args.crypto_send_cb_arg)) { in quic_write_records()
370 if (!rl->qtls->args.crypto_recv_rcd_cb(data, datalen, in quic_read_record()
371 rl->qtls->args.crypto_recv_rcd_cb_arg)) { in quic_read_record()
431 if (!rl->qtls->args.crypto_release_rcd_cb(rl->recread, in quic_release_record()
432 rl->qtls->args.crypto_release_rcd_cb_arg)) { in quic_release_record()
627 return qtls->args.got_transport_params_cb(in, inlen, in parse_transport_params_cb()
628 qtls->args.got_transport_params_cb_arg); in parse_transport_params_cb()
631 QUIC_TLS *ossl_quic_tls_new(const QUIC_TLS_ARGS *args) in ossl_quic_tls_new() argument
635 if (args->crypto_send_cb == NULL in ossl_quic_tls_new()
636 || args->crypto_recv_rcd_cb == NULL in ossl_quic_tls_new()
637 || args->crypto_release_rcd_cb == NULL) { in ossl_quic_tls_new()
651 qtls->args = *args; in ossl_quic_tls_new()
734 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(qtls->args.s); in ossl_quic_tls_tick()
744 if (qtls->args.is_server) { in ossl_quic_tls_tick()
752 if (!SSL_set_min_proto_version(qtls->args.s, TLS1_3_VERSION)) in ossl_quic_tls_tick()
755 SSL_clear_options(qtls->args.s, SSL_OP_ENABLE_MIDDLEBOX_COMPAT); in ossl_quic_tls_tick()
759 qtls->args.is_server ? ENDPOINT_SERVER in ossl_quic_tls_tick()
778 SSL_set_bio(qtls->args.s, nullbio, nullbio); in ossl_quic_tls_tick()
780 if (qtls->args.is_server) in ossl_quic_tls_tick()
781 SSL_set_accept_state(qtls->args.s); in ossl_quic_tls_tick()
783 SSL_set_connect_state(qtls->args.s); in ossl_quic_tls_tick()
793 ret = SSL_read(qtls->args.s, NULL, 0); in ossl_quic_tls_tick()
795 ret = SSL_do_handshake(qtls->args.s); in ossl_quic_tls_tick()
798 err = ossl_ssl_get_error(qtls->args.s, ret, in ossl_quic_tls_tick()
817 SSL_get0_alpn_selected(qtls->args.s, &alpn, &alpnlen); in ossl_quic_tls_tick()
824 return qtls->args.handshake_complete_cb(qtls->args.handshake_complete_cb_arg); in ossl_quic_tls_tick()
860 SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL(qtls->args.s); in ossl_quic_tls_is_cert_request()
871 uint32_t max_early_data = SSL_get0_session(qtls->args.s)->ext.max_early_data; in ossl_quic_tls_has_bad_max_early_data()