/* Copyright (c) 2017 - 2018 LiteSpeed Technologies Inc. See LICENSE. */ /* * lsquic_engine_public.h -- Engine's "public interface" * */ #ifndef LSQUIC_ENGINE_PUBLIC_H #define LSQUIC_ENGINE_PUBLIC_H 1 struct lsquic_conn; struct lsquic_engine; struct stack_st_X509; struct lsquic_engine_public { struct lsquic_mm enp_mm; struct lsquic_engine_settings enp_settings; const struct lsquic_hset_if *enp_hsi_if; void *enp_hsi_ctx; int (*enp_verify_cert)(void *verify_ctx, struct stack_st_X509 *chain); void *enp_verify_ctx; const struct lsquic_packout_mem_if *enp_pmi; void *enp_pmi_ctx; struct lsquic_engine *enp_engine; enum { ENPUB_PROC = (1 << 0), /* Being processed by one of the user-facing * functions. */ ENPUB_CAN_SEND = (1 << 1), } enp_flags; }; /* Put connection onto the Tickable Queue if it is not already on it. If * connection is being destroyed, this is a no-op. */ void lsquic_engine_add_conn_to_tickable (struct lsquic_engine_public *, lsquic_conn_t *); /* Put connection onto Advisory Tick Time Queue if it is not already on it. */ void lsquic_engine_add_conn_to_attq (struct lsquic_engine_public *enpub, lsquic_conn_t *, lsquic_time_t); #endif