libisdn
asn1_types.c File Reference
#include <stdio.h>
#include "asn1.h"
#include "asn1_common.h"
#include "asn1_types.h"

Go to the source code of this file.

Data Structures

struct  asn1_class
struct  asn1_type

Functions

const char * asn1_class_name (const asn1_class_t id)
const char * asn1_type_name (const asn1_type_t id)
int asn1_get_class (const struct asn1_object *elem)
int asn1_get_type (const struct asn1_object *elem)
int asn1_get_size (const struct asn1_object *elem)
int asn1_eq_class (const struct asn1_object *elem, const asn1_class_t asn_class)
int asn1_eq_type (const struct asn1_object *elem, const asn1_type_t asn_type)

Function Documentation

const char* asn1_class_name ( const asn1_class_t  id)

Definition at line 24 of file asn1_types.c.

References ASN1_CLASS_PRIVATE, and id.

Referenced by ____asn1_ptr_check(), and asn1_print().

int asn1_eq_class ( const struct asn1_object elem,
const asn1_class_t  asn_class 
)

Definition at line 97 of file asn1_types.c.

References asn1_header::asn_class, and asn1_object::hdr.

int asn1_eq_type ( const struct asn1_object elem,
const asn1_type_t  asn_type 
)

Definition at line 102 of file asn1_types.c.

References asn1_header::asn_type, and asn1_object::hdr.

Referenced by asn1_decode().

int asn1_get_class ( const struct asn1_object elem)

Definition at line 82 of file asn1_types.c.

References asn1_header::asn_class, and asn1_object::hdr.

Referenced by ____asn1_ptr_check(), and asn1_print().

int asn1_get_size ( const struct asn1_object elem)

Definition at line 92 of file asn1_types.c.

References asn1_object::hdr, and asn1_header::size.

int asn1_get_type ( const struct asn1_object elem)

Definition at line 87 of file asn1_types.c.

References asn1_header::asn_type, and asn1_object::hdr.

Referenced by ____asn1_ptr_check(), and asn1_print().

const char* asn1_type_name ( const asn1_type_t  id)

Definition at line 67 of file asn1_types.c.

References ARRAY_SIZE, and ASN1_TYPE_BMP_STRING.

Referenced by ____asn1_ptr_check(), asn1_decode(), and asn1_print().