The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
server_priv.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 
18 /**
19  * $Id: 281dfdde89fc906898207b07414b8f54bc021de5 $
20  *
21  * @file protocols/radius/server_priv.h
22  * @brief RADIUS bio handlers for outgoing RADIUS private server sockets
23  *
24  * @copyright 2024 Network RADIUS SAS (legal@networkradius.com)
25  */
26 RCSIDH(radius_server_priv_h, "$Id: 281dfdde89fc906898207b07414b8f54bc021de5 $")
27 
28 #include <freeradius-devel/radius/server.h>
29 #include <freeradius-devel/radius/id.h>
30 
31 /*
32  * Server connected data structure
33  */
34 typedef struct {
36 
38 
42 
44 
46 
47  /*
48  * @todo - perhaps we want to have the read() routine allocate memory for the packet? Or the
49  * verify routine can do that?
50  */
51  uint8_t buffer[4096]; //!< temporary read buffer
53 
54 fr_radius_server_fd_bio_t *fr_radius_server_fd_bio_alloc(TALLOC_CTX *ctx, size_t read_size, fr_radius_server_config_t *cfg, fr_bio_fd_config_t const *fd_cfg) CC_HINT(nonnull);
55 
57 
58 int fr_radius_server_fd_bio_read(fr_bio_packet_t *bio, void **packet_ctx_p, fr_packet_t **packet_p, TALLOC_CTX *out_ctx, fr_pair_list_t *out);
static int const char char buffer[256]
Definition: acutest.h:574
Definition: base.h:112
#define RCSIDH(h, id)
Definition: build.h:482
Configuration for sockets.
Definition: fd.h:78
unsigned char uint8_t
Definition: merged_model.c:30
The main red black tree structure.
Definition: rb.h:73
fr_radius_server_bio_info_t info
Definition: server_priv.h:43
int fr_radius_server_fd_bio_read(fr_bio_packet_t *bio, void **packet_ctx_p, fr_packet_t **packet_p, TALLOC_CTX *out_ctx, fr_pair_list_t *out)
fr_bio_packet_t common
Definition: server_priv.h:35
fr_radius_server_config_t cfg
Definition: server_priv.h:37
fr_radius_server_fd_bio_t * fr_radius_server_fd_bio_alloc(TALLOC_CTX *ctx, size_t read_size, fr_radius_server_config_t *cfg, fr_bio_fd_config_t const *fd_cfg)
Definition: server.c:58
int fr_radius_server_fd_bio_write(fr_bio_packet_t *bio, void *pctx, fr_packet_t *packet, fr_pair_list_t *list)
int nonnull(2, 5))
static size_t char ** out
Definition: value.h:997