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)  

asn1-func.h File Reference
#include "asn1-constants.h"
Include dependency graph for asn1-func.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  node_flag_s
 
union  asn_value_u
 
struct  asn_node_struct
 
struct  ksba_asn_tree_s
 
struct  static_struct_asn
 

Macros

#define HAVE_TYPEDEFD_ASNNODE
 

Typedefs

typedef struct asn_node_structAsnNode
 
typedef struct asn_node_structasn_node_t
 
typedef struct static_struct_asn static_asn
 

Enumerations

enum  asn_value_type {
  VALTYPE_NULL = 0 , VALTYPE_BOOL , VALTYPE_CSTR , VALTYPE_MEM ,
  VALTYPE_LONG , VALTYPE_ULONG
}
 

Functions

void _ksba_asn_release_nodes (AsnNode node)
 
void _ksba_asn_set_value (AsnNode node, enum asn_value_type vtype, const void *value, size_t len)
 
void _ksba_asn_set_name (AsnNode node, const char *name)
 
AsnNode _ksba_asn_walk_tree (AsnNode root, AsnNode node)
 
AsnNode _ksba_asn_walk_tree_up_right (AsnNode root, AsnNode node)
 
AsnNode _ksba_asn_find_node (AsnNode pointer, const char *name)
 
int _ksba_asn_check_identifier (AsnNode node)
 
int _ksba_asn_change_integer_value (AsnNode node)
 
int _ksba_asn_delete_not_used (AsnNode node)
 
int _ksba_asn_expand_object_id (AsnNode node)
 
void _ksba_asn_set_default_tag (AsnNode node)
 
void _ksba_asn_type_set_config (AsnNode node)
 
AsnNode _ksba_asn_expand_tree (AsnNode parse_tree, const char *name)
 
AsnNode _ksba_asn_insert_copy (AsnNode node)
 
int _ksba_asn_is_primitive (node_type_t type)
 
AsnNode _ksba_asn_new_node (node_type_t type)
 
void _ksba_asn_node_dump (AsnNode p, FILE *fp)
 
void _ksba_asn_node_dump_all (AsnNode root, FILE *fp)
 
AsnNode _ksba_asn_find_type_value (const unsigned char *image, AsnNode root, int idx, const void *oidbuf, size_t oidlen)
 
int _ksba_asn_delete_structure (AsnNode root)
 
const static_asn_ksba_asn_lookup_table (const char *name, const char **stringtbl)
 

Macro Definition Documentation

◆ HAVE_TYPEDEFD_ASNNODE

#define HAVE_TYPEDEFD_ASNNODE

Definition at line 96 of file asn1-func.h.

Typedef Documentation

◆ asn_node_t

typedef struct asn_node_struct* asn_node_t

Definition at line 95 of file asn1-func.h.

◆ AsnNode

typedef struct asn_node_struct* AsnNode

Definition at line 94 of file asn1-func.h.

◆ static_asn

typedef struct static_struct_asn static_asn

Enumeration Type Documentation

◆ asn_value_type

Enumerator
VALTYPE_NULL 
VALTYPE_BOOL 
VALTYPE_CSTR 
VALTYPE_MEM 
VALTYPE_LONG 
VALTYPE_ULONG 

Definition at line 68 of file asn1-func.h.

Function Documentation

◆ _ksba_asn_change_integer_value()

◆ _ksba_asn_check_identifier()

◆ _ksba_asn_delete_not_used()

int _ksba_asn_delete_not_used ( AsnNode  node)

◆ _ksba_asn_delete_structure()

◆ _ksba_asn_expand_object_id()

◆ _ksba_asn_expand_tree()

AsnNode _ksba_asn_expand_tree ( AsnNode  parse_tree,
const char *  name 
)

◆ _ksba_asn_find_node()

◆ _ksba_asn_find_type_value()

AsnNode _ksba_asn_find_type_value ( const unsigned char *  image,
AsnNode  root,
int  idx,
const void *  oidbuf,
size_t  oidlen 
)

◆ _ksba_asn_insert_copy()

◆ _ksba_asn_is_primitive()

◆ _ksba_asn_lookup_table()

const static_asn* _ksba_asn_lookup_table ( const char *  name,
const char **  stringtbl 
)

Definition at line 1387 of file asn1-tables.c.

References cms_asn1_tab, name, string_table, and tmttv2_asn1_tab.

Referenced by _ksba_asn_create_tree().

◆ _ksba_asn_new_node()

AsnNode _ksba_asn_new_node ( node_type_t  type)

Definition at line 80 of file asn1-func.c.

References add_node().

Referenced by _ksba_asn_create_tree().

◆ _ksba_asn_node_dump()

◆ _ksba_asn_node_dump_all()

void _ksba_asn_node_dump_all ( AsnNode  root,
FILE *  fp 
)

◆ _ksba_asn_release_nodes()

◆ _ksba_asn_set_default_tag()

◆ _ksba_asn_set_name()

void _ksba_asn_set_name ( AsnNode  node,
const char *  name 
)

◆ _ksba_asn_set_value()

◆ _ksba_asn_type_set_config()

◆ _ksba_asn_walk_tree()

◆ _ksba_asn_walk_tree_up_right()

AsnNode _ksba_asn_walk_tree_up_right ( AsnNode  root,
AsnNode  node 
)

Definition at line 825 of file asn1-func.c.

References find_up(), and asn_node_struct::right.