The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
alpn.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: 92487d5714dcf95c16d3ce25c38af789216231d3 $
20 *
21 * @file lib/tls/alpn.h
22 * @brief Agree with the peer on what is spoken inside the tunnel.
23 *
24 * Nothing here is for an application to call. An application takes part in
25 * Application Layer Protocol Negotiation (ALPN) by setting `alpn`,
26 * `sizeof_alpn` and `alpn_required` in #fr_tls_conf_t, and by reading `alpn`
27 * and `sizeof_alpn` from #fr_tls_session_t once the handshake is done. The
28 * TLS library calls everything below for itself, at the two points where it
29 * can: when it builds a context, and when a handshake finishes.
30 *
31 * @copyright 2026 Network RADIUS SAS (legal@networkradius.com)
32 */
33RCSIDH(alpn_h, "$Id: 92487d5714dcf95c16d3ce25c38af789216231d3 $")
34
35#include "openssl_user_macros.h"
36
37#include <openssl/ssl.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43#ifdef _TLS_PRIVATE
44int fr_tls_ctx_alpn_set(SSL_CTX *ctx, fr_tls_conf_t const *conf, bool client);
45
46int fr_tls_session_alpn_check(request_t *request, fr_tls_session_t *tls_session);
47#endif
48
49#ifdef __cplusplus
50}
51#endif
52#endif /* WITH_TLS */
static uint8_t request[4]
#define RCSIDH(h, id)
Definition build.h:604
static rs_t * conf
Definition radsniff.c:52