The FreeRADIUS server $Id: a4e7f8c94e8038b7627bcf52356b7ed15955c1d7 $
Loading...
Searching...
No Matches
dtls.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: b5f9aefcd01db0937036c80d9ecbb60e78d849f9 $
20 *
21 * @file lib/tls/dtls.h
22 * @brief Datagram Transport Layer Security (DTLS)
23 *
24 * Everything here is reached only when the session runs over a datagram
25 * transport. The TLS code which both transports share stays in session.c
26 * and connection.c, and branches on the transport where it has to.
27 *
28 * @copyright 2026 Network RADIUS SAS (legal@networkradius.com)
29 */
30RCSIDH(dtls_h, "$Id: b5f9aefcd01db0937036c80d9ecbb60e78d849f9 $")
31
32#include "openssl_user_macros.h"
33
34#include "session.h"
35#include "connection.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41int fr_dtls_session_init(fr_tls_session_t *tls_session, fr_tls_conf_t const *conf);
42
43
44void fr_dtls_timer_update(fr_tls_connection_t *conn);
45
46int fr_dtls_cookie_init(void);
47
48int fr_dtls_cookie_generate_cb(SSL *ssl, unsigned char *cookie, unsigned int *cookie_len);
49
50int fr_dtls_cookie_verify_cb(SSL *ssl, unsigned char const *cookie, unsigned int cookie_len);
51
52#ifdef __cplusplus
53}
54#endif
55#endif /* WITH_TLS */
#define RCSIDH(h, id)
Definition build.h:604
static rs_t * conf
Definition radsniff.c:52