libwebsockets
Lightweight C library for HTML5 websockets
class="ui-resizable-handle">
Loading...
Searching...
No Matches
lws-quic.h
Go to the documentation of this file.
1/*
2 * libwebsockets - small server side websockets and web server implementation
3 *
4 * Copyright (C) 2010 - 2026 Andy Green <andy@warmcat.com>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 * IN THE SOFTWARE.
23 */
24
32
40
52typedef int (*lws_tls_quic_secret_cb)(struct lws *wsi,
54 const uint8_t *secret, size_t secret_len);
55
66
80lws_tls_quic_advance_handshake(struct lws *wsi, int level,
81 const uint8_t *in, size_t in_len,
82 uint8_t *out, size_t *out_len);
83
92lws_tls_quic_set_transport_parameters(struct lws *wsi, const uint8_t *tp, size_t tp_len);
93
102lws_tls_quic_get_transport_parameters(struct lws *wsi, const uint8_t **tp, size_t *tp_len);
103
109
LWS_VISIBLE LWS_EXTERN int lws_tls_quic_get_transport_parameters(struct lws *wsi, const uint8_t **tp, size_t *tp_len)
LWS_VISIBLE LWS_EXTERN int lws_tls_quic_api_test(void)
LWS_VISIBLE LWS_EXTERN int lws_tls_quic_set_transport_parameters(struct lws *wsi, const uint8_t *tp, size_t tp_len)
lws_tls_quic_secret_type
Definition lws-quic.h:33
int(* lws_tls_quic_secret_cb)(struct lws *wsi, enum lws_tls_quic_secret_type type, const uint8_t *secret, size_t secret_len)
Definition lws-quic.h:52
LWS_VISIBLE LWS_EXTERN int lws_tls_quic_advance_handshake(struct lws *wsi, int level, const uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len)
LWS_VISIBLE LWS_EXTERN int lws_tls_quic_init(struct lws *wsi, lws_tls_quic_secret_cb cb)
@ LWS_TLS_QUIC_SECRET_CLIENT_HANDSHAKE
Definition lws-quic.h:35
@ LWS_TLS_QUIC_SECRET_CLIENT_APPLICATION
Definition lws-quic.h:37
@ LWS_TLS_QUIC_SECRET_SERVER_HANDSHAKE
Definition lws-quic.h:36
@ LWS_TLS_QUIC_SECRET_CLIENT_EARLY
Definition lws-quic.h:34
@ LWS_TLS_QUIC_SECRET_SERVER_APPLICATION
Definition lws-quic.h:38
#define LWS_EXTERN
unsigned char uint8_t
#define LWS_VISIBLE