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-func2.c File Reference
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "util.h"
#include "ksba.h"
#include "asn1-func.h"
Include dependency graph for asn1-func2.c:

Go to the source code of this file.


static AsnNode set_right (AsnNode node, AsnNode right)
static AsnNode set_down (AsnNode node, AsnNode down)
static AsnNode find_up (AsnNode node)
gpg_error_t _ksba_asn_create_tree (const char *mod_name, ksba_asn_tree_t *result)

Function Documentation

◆ _ksba_asn_create_tree()

gpg_error_t _ksba_asn_create_tree ( const char *  mod_name,
ksba_asn_tree_t result 

Creates the structures needed to manage the ASN1 definitions. ROOT is a vector created by the asn1-gentable tool.

Input Parameter:

Name of the module

Output Parameter:

KsbaAsntree *result : return the pointer to an object to be used with other functions.

Return Value: 0: structure created correctly. GPG_ERR_GENERAL: an error occured while structure creation. GPG_ERR_MODULE_NOT_FOUND: No such module NAME

Definition at line 114 of file asn1-func2.c.

References _ksba_asn_change_integer_value(), _ksba_asn_delete_structure(), _ksba_asn_expand_object_id(), _ksba_asn_lookup_table(), _ksba_asn_new_node(), _ksba_asn_set_name(), _ksba_asn_set_value(), ksba_asn_tree_s::filename, find_up(), asn_node_struct::flags, static_struct_asn::flags, GPG_ERR_GENERAL, GPG_ERR_INV_VALUE, gpg_error, node_flag_s::help_down, node_flag_s::help_right, asn_node_struct::link_next, ksba_asn_tree_s::node_list, ksba_asn_tree_s::parse_tree, set_down(), set_right(), TYPE_TAG, VALTYPE_CSTR, VALTYPE_ULONG, and xtrymalloc.

◆ find_up()

static AsnNode find_up ( AsnNode  node)

Definition at line 78 of file asn1-func2.c.

References asn_node_struct::left, and asn_node_struct::right.

Referenced by _ksba_asn_create_tree().

◆ set_down()

static AsnNode set_down ( AsnNode  node,
AsnNode  down 

Definition at line 65 of file asn1-func2.c.

References asn_node_struct::down, and asn_node_struct::left.

Referenced by _ksba_asn_create_tree().

◆ set_right()

static AsnNode set_right ( AsnNode  node,
AsnNode  right 

Definition at line 52 of file asn1-func2.c.

References asn_node_struct::left, and asn_node_struct::right.

Referenced by _ksba_asn_create_tree().