tls_quic.h
Go to the documentation of this file.
1 /**
2  * @file tls_quic.h
3  * @brief QUIC TLS related API
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneSSL Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @section Description
28  *
29  * The TLS protocol provides communications security over the Internet. The
30  * protocol allows client/server applications to communicate in a way that
31  * is designed to prevent eavesdropping, tampering, or message forgery
32  *
33  * @author Oryx Embedded SARL (www.oryx-embedded.com)
34  * @version 2.5.4
35  **/
36 
37 #ifndef _TLS_QUIC_H
38 #define _TLS_QUIC_H
39 
40 //Dependencies
41 #include "tls.h"
42 
43 //C++ guard
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 //QUIC TLS related functions
50  const TlsQuicCallbacks *quicCallbacks, void *handle);
51 
52 error_t tlsSetQuicHandle(TlsContext *context, void *handle);
53 
55  const uint8_t *params, size_t length);
56 
58  const uint8_t **params, size_t *length);
59 
61  TlsEncryptionLevel level, const uint8_t *data, size_t length);
62 
63 //C++ guard
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif
error_t tlsGetRemoteQuicTransportParams(TlsContext *context, const uint8_t **params, size_t *length)
Get remote QUIC transport parameters.
Definition: tls_quic.c:146
error_t tlsSetQuicHandle(TlsContext *context, void *handle)
Set QUIC-specific handle.
Definition: tls_quic.c:81
uint8_t data[]
Definition: ethernet.h:224
error_t tlsSetLocalQuicTransportParams(TlsContext *context, const uint8_t *params, size_t length)
Set local QUIC transport parameters.
Definition: tls_quic.c:103
TlsEncryptionLevel
Encryption level.
Definition: tls.h:1579
#define TlsContext
Definition: tls.h:36
error_t
Error codes.
Definition: error.h:43
error_t tlsRegisterQuicCallbacks(TlsContext *context, const TlsQuicCallbacks *quicCallbacks, void *handle)
Register QUIC-specific callback functions.
Definition: tls_quic.c:57
uint8_t length
Definition: tcp.h:375
error_t tlsProcessQuicHandshakeMessage(TlsContext *context, TlsEncryptionLevel level, const uint8_t *data, size_t length)
Process incoming handshake data.
Definition: tls_quic.c:171
TLS (Transport Layer Security)
QUIC callback functions.
Definition: tls.h:2159