The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
src
lib
bio
null.c
Go to the documentation of this file.
1
/*
2
* This program is is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or (at
5
* your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15
*/
16
17
/**
18
* $Id: 4f34b7ef8b1c2c93b62818c208e319418b9febfe $
19
* @file lib/bio/null.c
20
* @brief BIO NULL handlers
21
*
22
* @copyright 2024 Network RADIUS SAS (legal@networkradius.com)
23
*/
24
25
#include <freeradius-devel/bio/bio_priv.h>
26
#include <freeradius-devel/bio/null.h>
27
28
/** Always return 0 on read.
29
*
30
*/
31
ssize_t
fr_bio_null_read
(
UNUSED
fr_bio_t
*
bio
,
UNUSED
void
*packet_ctx,
UNUSED
void
*
buffer
,
UNUSED
size_t
size)
32
{
33
return
0;
34
}
35
36
/** Always return 0 on write.
37
*
38
*/
39
ssize_t
fr_bio_null_write
(
UNUSED
fr_bio_t
*
bio
,
UNUSED
void
*packet_ctx,
UNUSED
void
const
*
buffer
,
UNUSED
size_t
size)
40
{
41
return
0;
42
}
buffer
static int const char char buffer[256]
Definition:
acutest.h:574
fr_bio_s
Definition:
base.h:103
UNUSED
#define UNUSED
Definition:
build.h:313
ssize_t
long int ssize_t
Definition:
merged_model.c:24
fr_bio_null_write
ssize_t fr_bio_null_write(UNUSED fr_bio_t *bio, UNUSED void *packet_ctx, UNUSED void const *buffer, UNUSED size_t size)
Always return 0 on write.
Definition:
null.c:39
fr_bio_null_read
ssize_t fr_bio_null_read(UNUSED fr_bio_t *bio, UNUSED void *packet_ctx, UNUSED void *buffer, UNUSED size_t size)
Always return 0 on read.
Definition:
null.c:31
bio
static fr_bio_t * bio
Definition:
radclient-ng.c:86
Generated by
1.9.1