include/ber.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ber_tag

Defines

#define BER_NUM_TAGS(x)   (sizeof(x)/sizeof(struct ber_tag))

Functions

int ber_decode (const struct ber_tag *tags, unsigned int num_tags, const uint8_t *ptr, size_t len, void *priv)
size_t ber_tag_len (const uint8_t *ptr, const uint8_t *end)
const uint8_t * ber_decode_tag (const uint8_t **ptr, const uint8_t *end, size_t *tag_len)
size_t ber_decode_len (const uint8_t **ptr, const uint8_t *end)

Define Documentation

#define BER_NUM_TAGS (  )     (sizeof(x)/sizeof(struct ber_tag))

Definition at line 15 of file ber.h.

Referenced by set_app().


Function Documentation

int ber_decode ( const struct ber_tag tags,
unsigned int  num_tags,
const uint8_t *  ptr,
size_t  len,
void *  priv 
)

Definition at line 252 of file ber.c.

References decode_len(), decode_tag(), find_tag(), hex_dump(), ber_tag::op, ber_tag::tag, and ber_tag::tag_len.

Referenced by add_app(), atc(), bop_dtemp(), bop_fci(), bop_fci2(), bop_psd(), get_aip(), ptc(), and set_app().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ber_decode_len ( const uint8_t **  ptr,
const uint8_t *  end 
)

Definition at line 247 of file ber.c.

References decode_len().

Referenced by composite(), and decode_record().

Here is the call graph for this function:

Here is the caller graph for this function:

const uint8_t* ber_decode_tag ( const uint8_t **  ptr,
const uint8_t *  end,
size_t *  tag_len 
)

Definition at line 211 of file ber.c.

References decode_tag().

Referenced by composite().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ber_tag_len ( const uint8_t *  ptr,
const uint8_t *  end 
)

Definition at line 203 of file ber.c.

References decode_tag().

Referenced by construct_dol().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Sun Jan 2 08:34:35 2011 for ccid-utils by  doxygen 1.6.3