structure.c File Reference

#include <int.h>
#include <structure.h>
#include "parser_aux.h"
#include <gstr.h>

Include dependency graph for structure.c:

Go to the source code of this file.

Functions

static node_asnMHD__asn1_copy_structure2 (node_asn *root, const char *source_name)
node_asnMHD__asn1_add_node_only (unsigned int type)
node_asnMHD__asn1_find_left (node_asn *node)
MHD__asn1_retCode MHD__asn1_array2tree (const ASN1_ARRAY_TYPE *array, ASN1_TYPE *definitions, char *errorDescription)
MHD__asn1_retCode MHD__asn1_delete_structure (ASN1_TYPE *structure)
node_asnMHD__asn1_copy_structure3 (node_asn *source_node)
static MHD__asn1_retCode MHD__asn1_type_choice_config (node_asn *node)
static MHD__asn1_retCode MHD__asn1_expand_identifier (node_asn **node, node_asn *root)
MHD__asn1_retCode MHD__asn1_create_element (ASN1_TYPE definitions, const char *source_name, ASN1_TYPE *element)

Variables

char MHD__asn1_identifierMissing []


Function Documentation

node_asn* MHD__asn1_add_node_only ( unsigned int  type  ) 

Definition at line 53 of file structure.c.

References MHD__asn1_calloc, and node_asn_struct::type.

Referenced by MHD__asn1_copy_structure3(), MHD__asn1_expand_object_id(), and MHD__asn1_type_choice_config().

Here is the caller graph for this function:

MHD__asn1_retCode MHD__asn1_array2tree ( const ASN1_ARRAY_TYPE array,
ASN1_TYPE definitions,
char *  errorDescription 
)

MHD__asn1_array2tree - Creates the structures needed to manage the ASN1 definitions. : specify the array that contains ASN.1 declarations : return the pointer to the structure created by *ARRAY ASN.1 declarations : return the error description.

Creates the structures needed to manage the ASN.1 definitions. is a vector created by MHD__asn1_parser2array().

Returns:

ASN1_SUCCESS: Structure created correctly.

ASN1_ELEMENT_NOT_EMPTY: * not ASN1_TYPE_EMPTY.

ASN1_IDENTIFIER_NOT_FOUND: In the file there is an identifier that is not defined (see for more information).

ASN1_ARRAY_ERROR: The array pointed by is wrong.

Definition at line 108 of file structure.c.

References ASN1_ARRAY_ERROR, ASN1_ELEMENT_NOT_EMPTY, ASN1_IDENTIFIER_NOT_FOUND, ASN1_SUCCESS, ASN1_TYPE_EMPTY, CONST_DOWN, CONST_RIGHT, DOWN, Estrcat, Estrcpy, MHD__asn1_add_node(), MHD__asn1_change_integer_value(), MHD__asn1_check_identifier(), MHD__asn1_delete_list(), MHD__asn1_delete_list_and_nodes(), MHD__asn1_expand_object_id(), MHD__asn1_find_up(), MHD__asn1_identifierMissing, MHD__asn1_set_down(), MHD__asn1_set_name(), MHD__asn1_set_right(), MHD__asn1_set_value(), RIGHT, node_asn_struct::type, and UP.

Referenced by MHD__gnutls_global_init().

Here is the call graph for this function:

Here is the caller graph for this function:

static node_asn * MHD__asn1_copy_structure2 ( node_asn root,
const char *  source_name 
) [static]

Definition at line 340 of file structure.c.

References MHD__asn1_copy_structure3(), and MHD__asn1_find_node().

Referenced by MHD__asn1_create_element(), and MHD__asn1_expand_identifier().

Here is the call graph for this function:

Here is the caller graph for this function:

node_asn* MHD__asn1_copy_structure3 ( node_asn source_node  ) 

MHD__asn1_retCode MHD__asn1_create_element ( ASN1_TYPE  definitions,
const char *  source_name,
ASN1_TYPE element 
)

MHD__asn1_create_element - Creates a structure of type SOURCE_NAME. : pointer to the structure returned by "parser_asn1" function : the name of the type of the new structure (must be inside p_structure). : pointer to the structure created.

Creates a structure of type . Example using "pkix.asn":

rc = MHD__asn1_create_structure(cert_def, "PKIX1.Certificate", certptr);

Returns:

ASN1_SUCCESS: Creation OK.

ASN1_ELEMENT_NOT_FOUND: SOURCE_NAME isn't known

Definition at line 566 of file structure.c.

References ASN1_ELEMENT_NOT_FOUND, MHD__asn1_copy_structure2(), MHD__asn1_expand_identifier(), MHD__asn1_set_name(), and MHD__asn1_type_choice_config().

Referenced by MHD__gnutls_cert_get_issuer_dn(), MHD__gnutls_privkey_decode_pkcs1_rsa_key(), MHD__gnutls_x509_decode_octet_string(), MHD__gnutls_x509_der_encode(), MHD__gnutls_x509_ext_extract_keyUsage(), MHD__gnutls_x509_read_rsa_params(), MHD__gnutls_x509_write_rsa_params(), and MHD_gnutls_x509_crt_init().

Here is the call graph for this function:

Here is the caller graph for this function:

MHD__asn1_retCode MHD__asn1_delete_structure ( ASN1_TYPE structure  ) 

static MHD__asn1_retCode MHD__asn1_expand_identifier ( node_asn **  node,
node_asn root 
) [static]

node_asn* MHD__asn1_find_left ( node_asn node  ) 

Definition at line 76 of file structure.c.

References node_asn_struct::down, and node_asn_struct::left.

Referenced by MHD__asn1_delete_not_used(), MHD__asn1_delete_structure(), MHD__asn1_expand_identifier(), and MHD__asn1_type_choice_config().

Here is the caller graph for this function:

static MHD__asn1_retCode MHD__asn1_type_choice_config ( node_asn node  )  [static]


Variable Documentation

Definition at line 31 of file parser_aux.c.

Referenced by MHD__asn1_array2tree(), and MHD__asn1_check_identifier().


Generated on Fri Feb 27 18:32:27 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1