MINOR: quic: export TPs related functions
This commit is contained in:
parent
c87799652a
commit
9990c9353b
@ -120,5 +120,12 @@ static inline void quic_transport_params_dump(struct buffer *b,
|
|||||||
quic_tp_version_info_dump(b, &p->version_information, local);
|
quic_tp_version_info_dump(b, &p->version_information, local);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int quic_transport_param_enc_int(unsigned char **buf,
|
||||||
|
const unsigned char *end,
|
||||||
|
uint64_t type, uint64_t val);
|
||||||
|
int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
||||||
|
const unsigned char *buf,
|
||||||
|
const unsigned char *end);
|
||||||
|
|
||||||
#endif /* USE_QUIC */
|
#endif /* USE_QUIC */
|
||||||
#endif /* _HAPROXY_QUIC_TP_H */
|
#endif /* _HAPROXY_QUIC_TP_H */
|
||||||
|
@ -394,7 +394,7 @@ static int quic_transport_param_enc_mem(unsigned char **buf, const unsigned char
|
|||||||
/* Encode <val> 64-bits value as variable length integer into <buf>.
|
/* Encode <val> 64-bits value as variable length integer into <buf>.
|
||||||
* Returns 1 if succeeded, 0 if not.
|
* Returns 1 if succeeded, 0 if not.
|
||||||
*/
|
*/
|
||||||
static int quic_transport_param_enc_int(unsigned char **buf,
|
int quic_transport_param_enc_int(unsigned char **buf,
|
||||||
const unsigned char *end,
|
const unsigned char *end,
|
||||||
uint64_t type, uint64_t val)
|
uint64_t type, uint64_t val)
|
||||||
{
|
{
|
||||||
@ -598,7 +598,7 @@ int quic_transport_params_encode(unsigned char *buf,
|
|||||||
* or 0 for a client (connection to a haproxy server).
|
* or 0 for a client (connection to a haproxy server).
|
||||||
* Returns 1 if succeeded, 0 if not.
|
* Returns 1 if succeeded, 0 if not.
|
||||||
*/
|
*/
|
||||||
static int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
int quic_transport_params_decode(struct quic_transport_params *p, int server,
|
||||||
const unsigned char *buf,
|
const unsigned char *buf,
|
||||||
const unsigned char *end)
|
const unsigned char *end)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user