lsquic_shsk_stream.h revision a74702c6
1/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc.  See LICENSE. */
2/*
3 * Stream/crypto handshake adapter for the server side.  See implementation
4 * for more comments and explanation.
5 */
6
7#ifndef LSQUIC_SHSK_STREAM_H
8#define LSQUIC_SHSK_STREAM_H 1
9
10struct lsquic_conn;
11struct lsquic_engine_public;
12
13struct server_hsk_ctx {
14    struct lsquic_conn          *lconn;
15    struct lsquic_engine_public *enpub;
16    enum {
17        SHC_WARNED      = (1 << 0),         /* Warning has been printed */
18    }                            flags;
19};
20
21extern const struct lsquic_stream_if lsquic_server_hsk_stream_if;
22
23#endif
24