libisdn
asn1_types.h File Reference

Go to the source code of this file.

Data Structures

struct  asn1_list
struct  asn1_header
struct  asn1_object
struct  asn1_value
struct  asn1_null
struct  asn1_boolean
struct  asn1_string
struct  asn1_real
struct  asn1_integer
struct  asn1_oid
struct  asn1_enumerated
struct  asn1_complex
struct  asn1_set
struct  asn1_sequence
struct  asn1_buffer
struct  asn1_codec
struct  asn1_tree

Defines

#define ASN1_ELEMENT(x)   ((struct asn1_object *)(x))
#define ASN1_COMPLEX_ELEMENT(x)   ((struct asn1_complex *)(x))
#define ASN1_SIBLINGS(x)
#define ASN1_CHILDREN(x)
#define ASN1_MAXOID   10

Typedefs

typedef int(* decode_header_cb_t )(struct asn1_buffer *buf, struct asn1_header *hdr)
typedef int(* encode_header_cb_t )(struct asn1_buffer *buf, const struct asn1_header *hdr)
typedef int(* decode_value_cb_t )(struct asn1_buffer *buf, struct asn1_object *elem)
typedef int(* encode_value_cb_t )(struct asn1_buffer *buf, struct asn1_object *elem)
typedef int(* header_size_cb_t )(const struct asn1_header *hdr)

Define Documentation

#define ASN1_CHILDREN (   x)
Value:
({ \
                struct asn1_complex *___c = (struct asn1_complex *)(x); \
                &___c->children;                                        \
        })

Definition at line 16 of file asn1_types.h.

#define ASN1_COMPLEX_ELEMENT (   x)    ((struct asn1_complex *)(x))

Definition at line 9 of file asn1_types.h.

#define ASN1_ELEMENT (   x)    ((struct asn1_object *)(x))

Definition at line 8 of file asn1_types.h.

#define ASN1_MAXOID   10

Definition at line 97 of file asn1_types.h.

#define ASN1_SIBLINGS (   x)
Value:
({ \
                struct asn1_object *___c = (struct asn1_object *)(x);   \
                &___c->siblings;                                        \
         })

Definition at line 11 of file asn1_types.h.


Typedef Documentation

typedef int(* decode_header_cb_t)(struct asn1_buffer *buf, struct asn1_header *hdr)

Definition at line 155 of file asn1_types.h.

typedef int(* decode_value_cb_t)(struct asn1_buffer *buf, struct asn1_object *elem)

Definition at line 157 of file asn1_types.h.

typedef int(* encode_header_cb_t)(struct asn1_buffer *buf, const struct asn1_header *hdr)

Definition at line 156 of file asn1_types.h.

typedef int(* encode_value_cb_t)(struct asn1_buffer *buf, struct asn1_object *elem)

Definition at line 158 of file asn1_types.h.

typedef int(* header_size_cb_t)(const struct asn1_header *hdr)

Definition at line 159 of file asn1_types.h.