Formatting and parsing of extensions (DTLS 1.3 server) More...
#include "tls/tls.h"#include "tls/tls_misc.h"#include "tls13/tls13_server_misc.h"#include "dtls13/dtls13_server_extensions.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL TLS_TRACE_LEVEL |
Functions | |
| error_t | dtls13FormatServerCookieExtension (TlsContext *context, uint8_t *p, size_t *written) |
| Format Cookie extension. More... | |
| error_t | dtls13ParseClientCookieExtension (TlsContext *context, const Tls13Cookie *cookie) |
| Parse Cookie extension. More... | |
| error_t | dtls13GenerateCookie (TlsContext *context) |
| Cookie generation. More... | |
| error_t | dtls13ParseCookie (TlsContext *context, const uint8_t *cookie, size_t cookieLen) |
| Cookie parsing. More... | |
Detailed Description
Formatting and parsing of extensions (DTLS 1.3 server)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 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.
- Version
- 2.6.2
Definition in file dtls13_server_extensions.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL TLS_TRACE_LEVEL |
Definition at line 32 of file dtls13_server_extensions.c.
Function Documentation
◆ dtls13FormatServerCookieExtension()
| error_t dtls13FormatServerCookieExtension | ( | TlsContext * | context, |
| uint8_t * | p, | ||
| size_t * | written | ||
| ) |
Format Cookie extension.
- Parameters
-
[in] context Pointer to the TLS context [in] p Output stream where to write the Cookie extension [out] written Total number of bytes that have been written
- Returns
- Error code
Definition at line 54 of file dtls13_server_extensions.c.
◆ dtls13GenerateCookie()
| error_t dtls13GenerateCookie | ( | TlsContext * | context | ) |
Cookie generation.
- Parameters
-
[in] context Pointer to the TLS context
- Returns
- Error code
Definition at line 223 of file dtls13_server_extensions.c.
◆ dtls13ParseClientCookieExtension()
| error_t dtls13ParseClientCookieExtension | ( | TlsContext * | context, |
| const Tls13Cookie * | cookie | ||
| ) |
Parse Cookie extension.
- Parameters
-
[in] context Pointer to the TLS context [in] cookie Pointer to the Cookie extension
- Returns
- Error code
Definition at line 107 of file dtls13_server_extensions.c.
◆ dtls13ParseCookie()
| error_t dtls13ParseCookie | ( | TlsContext * | context, |
| const uint8_t * | cookie, | ||
| size_t | cookieLen | ||
| ) |
Cookie parsing.
- Parameters
-
[in] context Pointer to the TLS context [in] cookie Pointer to the Cookie extension [in] cookieLen Length of the cookie
- Returns
- Error code
Definition at line 321 of file dtls13_server_extensions.c.
