The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
serialize.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 (at
6  * 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: 37e96c1610ca7d52f1f102ad01b524efa66fceec $
20  * @file serialize.h
21  * @brief Serialize and deserialise cache entries.
22  *
23  * @author Arran Cudbard-Bell
24  * @copyright 2014 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
25  * @copyright 2014 The FreeRADIUS server project
26  */
27 RCSIDH(serialize_h, "$Id: 37e96c1610ca7d52f1f102ad01b524efa66fceec $")
28 
29 int cache_serialize(TALLOC_CTX *ctx, char **out, rlm_cache_entry_t const *c);
static fr_dict_t * dict
Definition: fuzzer.c:46
#define RCSIDH(h, id)
Definition: build.h:482
static fr_slen_t in
Definition: dict.h:821
long int ssize_t
Definition: merged_model.c:24
Definition: rlm_cache.h:72
int cache_serialize(TALLOC_CTX *ctx, char **out, rlm_cache_entry_t const *c)
Serialize a cache entry as a humanly readable string.
Definition: serialize.c:41
int cache_deserialize(rlm_cache_entry_t *c, fr_dict_t const *dict, char *in, ssize_t inlen)
Converts a serialized cache entry back into a structure.
Definition: serialize.c:103
static size_t char fr_sbuff_t size_t inlen
Definition: value.h:997
static size_t char ** out
Definition: value.h:997