The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
cbor.h File Reference

CBOR encoder and decoder. More...

#include <freeradius-devel/util/dbuff.h>
#include <freeradius-devel/util/pair.h>
+ Include dependency graph for cbor.h:

Go to the source code of this file.

Functions

ssize_t fr_cbor_decode_pair (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dbuff_t *dbuff, fr_dict_attr_t const *parent, bool tainted)
 
ssize_t fr_cbor_decode_value_box (TALLOC_CTX *ctx, fr_value_box_t *vb, fr_dbuff_t *dbuff, fr_type_t hint, fr_dict_attr_t const *enumv, bool tainted))
 
ssize_t fr_cbor_encode_pair (fr_dbuff_t *dbuff, fr_pair_t *vp)
 Encode a pair. More...
 
ssize_t fr_cbor_encode_value_box (fr_dbuff_t *dbuff, fr_value_box_t *vb)
 Encode CBOR. More...
 

Detailed Description

CBOR encoder and decoder.

Definition in file cbor.h.

Function Documentation

◆ fr_cbor_decode_pair()

ssize_t fr_cbor_decode_pair ( TALLOC_CTX *  ctx,
fr_pair_list_t out,
fr_dbuff_t dbuff,
fr_dict_attr_t const *  parent,
bool  tainted 
)

Definition at line 1629 of file cbor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_cbor_decode_value_box()

ssize_t fr_cbor_decode_value_box ( TALLOC_CTX *  ctx,
fr_value_box_t vb,
fr_dbuff_t dbuff,
fr_type_t  hint,
fr_dict_attr_t const *  enumv,
bool  tainted 
)

Definition at line 989 of file cbor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_cbor_encode_pair()

ssize_t fr_cbor_encode_pair ( fr_dbuff_t dbuff,
fr_pair_t vp 
)

Encode a pair.

Definition at line 1436 of file cbor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fr_cbor_encode_value_box()

ssize_t fr_cbor_encode_value_box ( fr_dbuff_t dbuff,
fr_value_box_t vb 
)

Encode CBOR.

Values 0..23 can be encoded in place. Other values can be encoded using the closest smallest integer

Definition at line 166 of file cbor.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: