tls_quic.h File Reference

QUIC TLS related API. More...

#include "tls.h"

Go to the source code of this file.

Functions

error_t tlsRegisterQuicCallbacks (TlsContext *context, const TlsQuicCallbacks *quicCallbacks, void *handle)
 Register QUIC-specific callback functions. More...
 
error_t tlsSetQuicHandle (TlsContext *context, void *handle)
 Set QUIC-specific handle. More...
 
error_t tlsSetLocalQuicTransportParams (TlsContext *context, const uint8_t *params, size_t length)
 Set local QUIC transport parameters. More...
 
error_t tlsGetRemoteQuicTransportParams (TlsContext *context, const uint8_t **params, size_t *length)
 Get remote QUIC transport parameters. More...
 
error_t tlsProcessQuicHandshakeMessage (TlsContext *context, TlsEncryptionLevel level, const uint8_t *data, size_t length)
 Process incoming handshake data. More...
 

Detailed Description

QUIC TLS related API.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneSSL Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Description

The TLS protocol provides communications security over the Internet. The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.5.4

Definition in file tls_quic.h.

Function Documentation

◆ tlsGetRemoteQuicTransportParams()

error_t tlsGetRemoteQuicTransportParams ( TlsContext context,
const uint8_t **  params,
size_t *  length 
)

Get remote QUIC transport parameters.

Parameters
[in]contextPointer to the TLS context
[out]paramsPointer to the QUIC transport parameters
[out]lengthLength of the QUIC transport parameters, in bytes
Returns
Error code

Definition at line 146 of file tls_quic.c.

◆ tlsProcessQuicHandshakeMessage()

error_t tlsProcessQuicHandshakeMessage ( TlsContext context,
TlsEncryptionLevel  level,
const uint8_t *  data,
size_t  length 
)

Process incoming handshake data.

Parameters
[in]contextPointer to the TLS context
[in]levelEncryption level
[in]dataPointer to the handshake data
[in]lengthLength of the handshake data, in bytes
Returns
Error code

Definition at line 171 of file tls_quic.c.

◆ tlsRegisterQuicCallbacks()

error_t tlsRegisterQuicCallbacks ( TlsContext context,
const TlsQuicCallbacks quicCallbacks,
void *  handle 
)

Register QUIC-specific callback functions.

Parameters
[in]contextPointer to the TLS context
[in]quicCallbacksQUIC callback functions
[in]handleAn opaque pointer passed to the callback functions
Returns
Error code

Definition at line 57 of file tls_quic.c.

◆ tlsSetLocalQuicTransportParams()

error_t tlsSetLocalQuicTransportParams ( TlsContext context,
const uint8_t *  params,
size_t  length 
)

Set local QUIC transport parameters.

Parameters
[in]contextPointer to the TLS context
[in]paramsPointer to the QUIC transport parameters
[in]lengthLength of the QUIC transport parameters, in bytes
Returns
Error code

Definition at line 103 of file tls_quic.c.

◆ tlsSetQuicHandle()

error_t tlsSetQuicHandle ( TlsContext context,
void *  handle 
)

Set QUIC-specific handle.

Parameters
[in]contextPointer to the TLS context
[in]handleAn opaque pointer passed to the callback functions
Returns
Error code

Definition at line 81 of file tls_quic.c.