lsquic_chsk_stream.h revision a74702c6
1/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 2/* 3 * Stream/crypto handshake adapter for the client side. 4 */ 5 6#ifndef LSQUIC_CHSK_STREAM_H 7#define LSQUIC_CHSK_STREAM_H 1 8 9struct lsquic_conn; 10struct lsquic_mm; 11struct ver_neg; 12 13struct client_hsk_ctx { 14 struct lsquic_conn *lconn; 15 struct lsquic_mm *mm; 16 const struct ver_neg *ver_neg; 17 unsigned char *buf_in; /* Server response may have to be buffered */ 18 unsigned buf_sz, /* Total number of bytes in `buf_in' */ 19 buf_off; /* Number of bytes read into `buf_in' */ 20}; 21 22extern const struct lsquic_stream_if lsquic_client_hsk_stream_if; 23 24#endif 25