The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
tls.h
Go to the documentation of this file.
1#ifdef WITH_TLS
2#pragma once
3/*
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/**
20 * $Id: f82cc0219b3264410a913955c62c10ee511dfb74 $
21 *
22 * @file protocols/radius/tls.h
23 * @brief Constants for the RADIUS/TLS protocol.
24 *
25 * @copyright 2026 Network RADIUS SAS (legal@networkradius.com)
26 */
27RCSIDH(radius_tls_h, "$Id: f82cc0219b3264410a913955c62c10ee511dfb74 $")
28
29#include <freeradius-devel/util/talloc.h>
30
31#include <freeradius-devel/tls/alpn_id.h>
32
33/** ALPN ids, which are the position of the entry in the ALPN table, plus one.
34 */
35typedef enum {
36 /* 0 is FR_TLS_ALPN_ID_NONE */
37 FR_RADIUS_ALPN_RADIUS_1_0 = 1, //!< "radius/1.0", which is also used when ALPN is not negotiated.
38 FR_RADIUS_ALPN_RADIUS_1_1, //!< "radius/1.1", RFC 9765.
39} fr_radius_alpn_id_t;
40
41extern fr_tls_alpn_t const fr_radius_alpn_table[];
42
43#define FR_RADIUS_TLS_BUFFER_SIZE_MIN (4096)
44#define FR_RADIUS_TLS_BUFFER_SIZE_MAX (1 << 18)
45
46#endif
#define RCSIDH(h, id)
Definition build.h:610