mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Release 1.17.0
- [API Change] Packet out Memory Interface (PMI) update: - Split PMI pool return into pmi_release and pmi_return - PMI callbacks take peer_ctx and is_ipv6 arguments - [BUGFIX] Fix use-after-free when certificate is updated - Silence gcc warning in optimized mode by performing useless initialization - cmake: use the standard variable CMAKE_BUILD_TYPE instead of DEVEL_MODE
This commit is contained in:
parent
66f9afccd0
commit
1e75f9380e
15 changed files with 178 additions and 64 deletions
|
@ -24,7 +24,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define LSQUIC_MAJOR_VERSION 1
|
||||
#define LSQUIC_MINOR_VERSION 16
|
||||
#define LSQUIC_MINOR_VERSION 17
|
||||
#define LSQUIC_PATCH_VERSION 0
|
||||
|
||||
/**
|
||||
|
@ -485,16 +485,29 @@ typedef int (*lsquic_packets_out_f)(
|
|||
/**
|
||||
* The packet out memory interface is used by LSQUIC to get buffers to
|
||||
* which outgoing packets will be written before they are passed to
|
||||
* ea_packets_out callback. pmi_release() is called at some point,
|
||||
* usually after the packet is sent successfully, to return the buffer
|
||||
* to the pool.
|
||||
* ea_packets_out callback.
|
||||
*
|
||||
* If not specified, malloc() and free() are used.
|
||||
*/
|
||||
struct lsquic_packout_mem_if
|
||||
{
|
||||
void * (*pmi_allocate) (void *pmi_ctx, size_t sz);
|
||||
void (*pmi_release) (void *pmi_ctx, void *obj);
|
||||
/**
|
||||
* Allocate buffer for sending.
|
||||
*/
|
||||
void * (*pmi_allocate) (void *pmi_ctx, void *conn_ctx, unsigned short sz,
|
||||
char is_ipv6);
|
||||
/**
|
||||
* This function is used to release the allocated buffer after it is
|
||||
* sent via @ref ea_packets_out.
|
||||
*/
|
||||
void (*pmi_release) (void *pmi_ctx, void *conn_ctx, void *buf,
|
||||
char is_ipv6);
|
||||
/**
|
||||
* If allocated buffer is not going to be sent, return it to the caller
|
||||
* using this function.
|
||||
*/
|
||||
void (*pmi_return) (void *pmi_ctx, void *conn_ctx, void *buf,
|
||||
char is_ipv6);
|
||||
};
|
||||
|
||||
struct stack_st_X509;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue