1a74702c6SGeorge Wang/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 25392f7a3SLiteSpeed Tech/* 35392f7a3SLiteSpeed Tech * Stream/crypto handshake adapter for the server side. See implementation 45392f7a3SLiteSpeed Tech * for more comments and explanation. 55392f7a3SLiteSpeed Tech */ 65392f7a3SLiteSpeed Tech 75392f7a3SLiteSpeed Tech#ifndef LSQUIC_SHSK_STREAM_H 85392f7a3SLiteSpeed Tech#define LSQUIC_SHSK_STREAM_H 1 95392f7a3SLiteSpeed Tech 105392f7a3SLiteSpeed Techstruct lsquic_conn; 115392f7a3SLiteSpeed Techstruct lsquic_engine_public; 125392f7a3SLiteSpeed Tech 135392f7a3SLiteSpeed Techstruct server_hsk_ctx { 145392f7a3SLiteSpeed Tech struct lsquic_conn *lconn; 155392f7a3SLiteSpeed Tech struct lsquic_engine_public *enpub; 165392f7a3SLiteSpeed Tech enum { 175392f7a3SLiteSpeed Tech SHC_WARNED = (1 << 0), /* Warning has been printed */ 185392f7a3SLiteSpeed Tech } flags; 195392f7a3SLiteSpeed Tech}; 205392f7a3SLiteSpeed Tech 215392f7a3SLiteSpeed Techextern const struct lsquic_stream_if lsquic_server_hsk_stream_if; 225392f7a3SLiteSpeed Tech 235392f7a3SLiteSpeed Tech#endif 24