libksba  1.6.0
About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.
  Fossies Dox: libksba-1.6.0.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ber-help.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  tag_info
 

Macros

#define parse_sequence(buf, len, ti)    _ksba_parse_sequence ((buf),(len),(ti))
 
#define parse_context_tag(buf, len, ti, tag)    _ksba_parse_context_tag ((buf),(len),(ti),(tag))
 
#define parse_enumerated(buf, len, ti, maxlen)    _ksba_parse_enumerated ((buf),(len),(ti),(maxlen))
 
#define parse_integer(buf, len, ti)    _ksba_parse_integer ((buf),(len),(ti))
 
#define parse_octet_string(buf, len, ti)    _ksba_parse_octet_string ((buf),(len),(ti))
 
#define parse_optional_boolean(buf, len, r_bool)    _ksba_parse_optional_boolean ((buf),(len),(r_bool))
 
#define parse_optional_null(buf, len, r_seen)    _ksba_parse_optional_null ((buf),(len),(r_seen))
 
#define parse_object_id_into_str(buf, len, r_oid)    _ksba_parse_object_id_into_str ((buf),(len),(r_oid))
 
#define parse_asntime_into_isotime(buf, len, isotime)    _ksba_parse_asntime_into_isotime ((buf),(len),(isotime))
 

Functions

gpg_error_t _ksba_ber_read_tl (ksba_reader_t reader, struct tag_info *ti)
 
gpg_error_t _ksba_ber_parse_tl (unsigned char const **buffer, size_t *size, struct tag_info *ti)
 
gpg_error_t _ksba_ber_write_tl (ksba_writer_t writer, unsigned long tag, enum tag_class class, int constructed, unsigned long length)
 
size_t _ksba_ber_encode_tl (unsigned char *buffer, unsigned long tag, enum tag_class class, int constructed, unsigned long length)
 
size_t _ksba_ber_count_tl (unsigned long tag, enum tag_class class, int constructed, unsigned long length)
 
static void parse_skip (unsigned char const **buf, size_t *len, struct tag_info *ti)
 
gpg_error_t _ksba_parse_sequence (unsigned char const **buf, size_t *len, struct tag_info *ti)
 
gpg_error_t _ksba_parse_context_tag (unsigned char const **buf, size_t *len, struct tag_info *ti, int tag)
 
gpg_error_t _ksba_parse_enumerated (unsigned char const **buf, size_t *len, struct tag_info *ti, size_t maxlen)
 
gpg_error_t _ksba_parse_integer (unsigned char const **buf, size_t *len, struct tag_info *ti)
 
gpg_error_t _ksba_parse_octet_string (unsigned char const **buf, size_t *len, struct tag_info *ti)
 
gpg_error_t _ksba_parse_optional_boolean (unsigned char const **buf, size_t *len, int *r_bool)
 
gpg_error_t _ksba_parse_optional_null (unsigned char const **buf, size_t *len, int *r_seen)
 
gpg_error_t _ksba_parse_object_id_into_str (unsigned char const **buf, size_t *len, char **oid)
 
gpg_error_t _ksba_parse_asntime_into_isotime (unsigned char const **buf, size_t *len, ksba_isotime_t isotime)
 

Macro Definition Documentation

◆ parse_asntime_into_isotime

#define parse_asntime_into_isotime (   buf,
  len,
  isotime 
)     _ksba_parse_asntime_into_isotime ((buf),(len),(isotime))

Definition at line 122 of file ber-help.h.

◆ parse_context_tag

#define parse_context_tag (   buf,
  len,
  ti,
  tag 
)     _ksba_parse_context_tag ((buf),(len),(ti),(tag))

Definition at line 85 of file ber-help.h.

◆ parse_enumerated

#define parse_enumerated (   buf,
  len,
  ti,
  maxlen 
)     _ksba_parse_enumerated ((buf),(len),(ti),(maxlen))

Definition at line 90 of file ber-help.h.

◆ parse_integer

#define parse_integer (   buf,
  len,
  ti 
)     _ksba_parse_integer ((buf),(len),(ti))

Definition at line 95 of file ber-help.h.

◆ parse_object_id_into_str

#define parse_object_id_into_str (   buf,
  len,
  r_oid 
)     _ksba_parse_object_id_into_str ((buf),(len),(r_oid))

Definition at line 115 of file ber-help.h.

◆ parse_octet_string

#define parse_octet_string (   buf,
  len,
  ti 
)     _ksba_parse_octet_string ((buf),(len),(ti))

Definition at line 100 of file ber-help.h.

◆ parse_optional_boolean

#define parse_optional_boolean (   buf,
  len,
  r_bool 
)     _ksba_parse_optional_boolean ((buf),(len),(r_bool))

Definition at line 105 of file ber-help.h.

◆ parse_optional_null

#define parse_optional_null (   buf,
  len,
  r_seen 
)     _ksba_parse_optional_null ((buf),(len),(r_seen))

Definition at line 110 of file ber-help.h.

◆ parse_sequence

#define parse_sequence (   buf,
  len,
  ti 
)     _ksba_parse_sequence ((buf),(len),(ti))

Definition at line 80 of file ber-help.h.

Function Documentation

◆ _ksba_ber_count_tl()

size_t _ksba_ber_count_tl ( unsigned long  tag,
enum tag_class  class,
int  constructed,
unsigned long  length 
)

◆ _ksba_ber_encode_tl()

size_t _ksba_ber_encode_tl ( unsigned char *  buffer,
unsigned long  tag,
enum tag_class  class,
int  constructed,
unsigned long  length 
)

◆ _ksba_ber_parse_tl()

◆ _ksba_ber_read_tl()

◆ _ksba_ber_write_tl()

◆ _ksba_parse_asntime_into_isotime()

gpg_error_t _ksba_parse_asntime_into_isotime ( unsigned char const **  buf,
size_t *  len,
ksba_isotime_t  isotime 
)

◆ _ksba_parse_context_tag()

gpg_error_t _ksba_parse_context_tag ( unsigned char const **  buf,
size_t *  len,
struct tag_info ti,
int  tag 
)

◆ _ksba_parse_enumerated()

gpg_error_t _ksba_parse_enumerated ( unsigned char const **  buf,
size_t *  len,
struct tag_info ti,
size_t  maxlen 
)

◆ _ksba_parse_integer()

gpg_error_t _ksba_parse_integer ( unsigned char const **  buf,
size_t *  len,
struct tag_info ti 
)

◆ _ksba_parse_object_id_into_str()

gpg_error_t _ksba_parse_object_id_into_str ( unsigned char const **  buf,
size_t *  len,
char **  oid 
)

◆ _ksba_parse_octet_string()

gpg_error_t _ksba_parse_octet_string ( unsigned char const **  buf,
size_t *  len,
struct tag_info ti 
)

◆ _ksba_parse_optional_boolean()

gpg_error_t _ksba_parse_optional_boolean ( unsigned char const **  buf,
size_t *  len,
int *  r_bool 
)

◆ _ksba_parse_optional_null()

gpg_error_t _ksba_parse_optional_null ( unsigned char const **  buf,
size_t *  len,
int *  r_seen 
)

◆ _ksba_parse_sequence()

gpg_error_t _ksba_parse_sequence ( unsigned char const **  buf,
size_t *  len,
struct tag_info ti 
)

◆ parse_skip()