The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
tls.c
Go to the documentation of this file.
1#ifdef WITH_TLS
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
18/**
19 * $Id: 79abb12f7129ece3fcf2add4059f4410ef50e0d6 $
20 *
21 * @file protocols/radius/tls.c
22 * @brief Constants for the RADIUS/TLS protocol.
23 *
24 * @copyright 2026 Network RADIUS SAS (legal@networkradius.com)
25 */
26RCSID("$Id: 79abb12f7129ece3fcf2add4059f4410ef50e0d6 $")
27
28#include <freeradius-devel/radius/tls.h>
29
30/*
31 * For now, src/lib/tls enforces a minimum of DTLS 1.2 and TLS 1.3 for ALPN.
32 *
33 * @todo - move that here, with fields for DTLS and TLS.
34 *
35 * @todo - we likely don't need the FR_TLS_ALPN_STICKY flag. All
36 * ALPN strings should be sticky. The only relaxation of that is
37 * the FR_TLS_ALPN_DEFAULT string can be used with or without
38 * ALPN.
39 */
40fr_tls_alpn_t const fr_radius_alpn_table[] = {
41 { .id = FR_RADIUS_ALPN_RADIUS_1_0, .name = "radius/1.0",
42 .conf_name = "radius_v1_0", .flags = FR_TLS_ALPN_DEFAULT },
43 { .id = FR_RADIUS_ALPN_RADIUS_1_1, .name = "radius/1.1",
44 .conf_name = "radius_v1_1", .flags = FR_TLS_ALPN_STICKY },
45
46 FR_TLS_ALPN_TABLE_TERMINATOR
47};
48#endif
#define RCSID(id)
Definition build.h:609