The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
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: e43ba2970a817414a3a6e4a3e755a216c305eb1b $
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 */
27RCSIDH(serialize_h, "$Id: e43ba2970a817414a3a6e4a3e755a216c305eb1b $")
28
29int cache_serialize(TALLOC_CTX *ctx, char **out, rlm_cache_entry_t const *c);
30int cache_deserialize(request_t *request, rlm_cache_entry_t *c, fr_dict_t const *dict, char *in, ssize_t inlen);
#define RCSIDH(h, id)
Definition build.h:484
static fr_slen_t in
Definition dict.h:824
long int ssize_t
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(request_t *request, 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:104
static size_t char fr_sbuff_t size_t inlen
Definition value.h:997
static size_t char ** out
Definition value.h:997