"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/liblsquic/lsquic_enc_sess.h" between
lsquic-2.22.1.tar.gz and lsquic-2.23.1.tar.gz

About: LSQUIC is LiteSpeed’s QUIC and HTTP/3 Library. A hint: HTTP/3 uses QUIC as the underlying transport protocol instead of TCP.

lsquic_enc_sess.h  (lsquic-2.22.1):lsquic_enc_sess.h  (lsquic-2.23.1)
skipping to change at line 18 skipping to change at line 18
struct lsquic_packet_in; struct lsquic_packet_in;
struct stream_wrapper; struct stream_wrapper;
struct ver_neg; struct ver_neg;
struct lsquic_conn; struct lsquic_conn;
struct transport_params; struct transport_params;
struct lsquic_cid; struct lsquic_cid;
struct ssl_stream_method_st; struct ssl_stream_method_st;
struct ssl_st; struct ssl_st;
struct sockaddr; struct sockaddr;
struct conn_cid_elem; struct conn_cid_elem;
struct lsquic_engine_settings;
enum lsquic_version;
#define DNONC_LENGTH 32 #define DNONC_LENGTH 32
#define SRST_LENGTH 16 #define SRST_LENGTH 16
/* From [draft-ietf-quic-tls-14]: /* From [draft-ietf-quic-tls-14]:
* *
* Data is protected using a number of encryption levels: * Data is protected using a number of encryption levels:
* *
* o Plaintext * o Plaintext
* *
skipping to change at line 245 skipping to change at line 247
* version, that's why there is a separate method for thus. Plus, we * version, that's why there is a separate method for thus. Plus, we
* want to be able to call it after the "handshake is done" callback * want to be able to call it after the "handshake is done" callback
* is called. * is called.
*/ */
void (*esf_maybe_dispatch_sess_resume) (enc_session_t *, void (*esf_maybe_dispatch_sess_resume) (enc_session_t *,
void (*cb)(struct lsquic_conn *, const unsigned char *, size_t)); void (*cb)(struct lsquic_conn *, const unsigned char *, size_t));
void (*esf_reset_cid) (enc_session_t *, const lsquic_cid_t *); void (*esf_reset_cid) (enc_session_t *, const lsquic_cid_t *);
}; };
enum iquic_handshake_status {
IHS_WANT_READ,
IHS_WANT_WRITE,
IHS_STOP,
};
struct crypto_stream_if struct crypto_stream_if
{ {
ssize_t (*csi_write) (void *stream, const void *buf, size_t len); ssize_t (*csi_write) (void *stream, const void *buf, size_t len);
int (*csi_flush) (void *stream); int (*csi_flush) (void *stream);
ssize_t (*csi_readf) (void *stream, ssize_t (*csi_readf) (void *stream,
size_t (*readf)(void *, const unsigned char *, size_t, int), void *ctx); size_t (*readf)(void *, const unsigned char *, size_t, int), void *ctx);
int (*csi_wantwrite) (void *stream, int is_want); int (*csi_wantwrite) (void *stream, int is_want);
int (*csi_wantread) (void *stream, int is_want); int (*csi_wantread) (void *stream, int is_want);
enum enc_level enum enc_level
(*csi_enc_level) (void *stream); (*csi_enc_level) (void *stream);
skipping to change at line 374 skipping to change at line 370
#define ALERT_NO_APPLICATION_PROTOCOL 120 #define ALERT_NO_APPLICATION_PROTOCOL 120
enum lsquic_version enum lsquic_version
lsquic_sess_resume_version (const unsigned char *, size_t); lsquic_sess_resume_version (const unsigned char *, size_t);
/* This is seems to be true for all of the ciphers used by IETF QUIC. /* This is seems to be true for all of the ciphers used by IETF QUIC.
* XXX: Perhaps add a check? * XXX: Perhaps add a check?
*/ */
#define IQUIC_TAG_LEN 16 #define IQUIC_TAG_LEN 16
/* Return number of bytes written to `buf' or -1 on error */
int
lsquic_enc_sess_ietf_gen_quic_ctx (
const struct lsquic_engine_settings *settings,
enum lsquic_version version, unsigned char *buf, size_t bufsz);
#endif #endif
 End of changes. 3 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)