The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
ticket_stateless.h
Go to the documentation of this file.
1#pragma once
2/*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 */
17#ifdef WITH_TLS
18/**
19 * $Id: 6b06ed49e889420cfcba235fa6f4f8ad47b67456 $
20 *
21 * @file lib/tls/ticket_stateless.h
22 * @brief Types for stateless TLS session tickets
23 *
24 * @copyright 2021 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
25 * @copyright 2026 Network RADIUS SAS (legal@networkradius.com)
26 */
27RCSIDH(ticket_stateless_h, "$Id: 6b06ed49e889420cfcba235fa6f4f8ad47b67456 $")
28
29#include "openssl_user_macros.h"
30
31#include <openssl/ssl.h>
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37/** The current state of calling `encode session` or `decode session`
38 *
39 * A stateless session ticket encodes the contents of the `session-state` list.
40 *
41 * The `encode session` policy allows the admin to change the list
42 * before the ticket is created.
43 *
44 * The `decode session` policy allows the admin to check the list
45 * after a ticket has been received.
46 */
47typedef enum : uint8_t {
48 FR_TLS_TICKET_STATELESS_INIT = 0, //!< Nothing requested.
49 FR_TLS_TICKET_STATELESS_ENCODE_REQUESTED, //!< `encode session` needs to run.
50 FR_TLS_TICKET_STATELESS_DECODE_REQUESTED, //!< `decode session` needs to run.
51 FR_TLS_TICKET_STATELESS_SUCCESS, //!< The section ran and returned success.
52 FR_TLS_TICKET_STATELESS_FAILED //!< The section ran and did not.
53} fr_tls_ticket_stateless_state_t;
54
55#ifdef __cplusplus
56}
57#endif
58#endif /* WITH_TLS */
#define RCSIDH(h, id)
Definition build.h:604
unsigned char uint8_t