This package contains files for development of applications which will
asn1_array2tree Creates the structures needed to manage the ASN.1 definitions. array is a vector created by asn1_parser2array(). asn1_bit_der Creates a length-value DER encoding for the input data as it would have been for a BIT STRING. The DER encoded data will be copied in der . Note that the BIT... asn1_check_version Check that the version of the library is at minimum the requested one and return the version string; return NULL if the condition is not satisfied. If a NULL is... asn1_copy_node Create a deep copy of a asn1_node variable. That function requires dst to be expanded using asn1_create_element(). asn1_create_element Creates a structure of type source_name . Example using "pkix.asn": rc = asn1_create_element(cert_def, "PKIX1.Certificate", certptr); asn1_decode_simple_ber Decodes a BER encoded type. The output is an allocated value of the data. This decodes BER STRINGS only. Other types are decoded as DER. asn1_decode_simple_der Decodes a simple DER encoded type (e.g. a string, which is not constructed). The output is a pointer inside the der . asn1_der_coding Creates the DER encoding for the NAME structure (inside *POINTER structure). asn1_der_decoding Fill the structure * element with values of a DER encoding string. The structure must just be created with function asn1_create_element(). Note that the *... asn1_der_decoding2 Fill the structure * element with values of a DER encoding string. The structure must just be created with function asn1_create_element(). If... asn1_der_decoding_element Fill the element named ELEMENTNAME with values of a DER encoding string. The structure must just be created with function asn1_create_element(). The DER vector... asn1_der_decoding_startEnd Find the start and end point of an element in a DER encoding string. I mean that if you have a der encoding and you have already used the function... asn1_dup_node Create a deep copy of a asn1_node variable. This function will return an exact copy of the provided structure. asn1_encode_simple_der Creates the DER encoding for various simple ASN.1 types like strings etc. It stores the tag and length in tl , which should have space for at least... asn1_expand_any_defined_by Expands every "ANY DEFINED BY" element of a structure created from a DER decoding process (asn1_der_decoding function). The element ANY must be defined by an... asn1_expand_octet_string Expands an "OCTET STRING" element of a structure created from a DER decoding process (the asn1_der_decoding() function). The type used for expansion is the... asn1_find_node Searches for an element called name starting from pointer . The name is composed by differents identifiers separated by dots. When * pointer has a name, the... asn1_get_length_ber Extract a length field from BER data. The difference to asn1_get_length_der() is that this function will return a length even if the value has indefinite... asn1_get_octet_der Extract an OCTET SEQUENCE from DER data. Note that this function expects the DER data past the tag field, i.e., the length and content octets. asn1_length_der Creates the DER encoding of the provided length value. The der buffer must have enough room for the output. The maximum length this function will encode is... asn1_number_of_elements Counts the number of elements of a sub-structure called NAME with names equal to "?1","?2", ... asn1_octet_der Creates a length-value DER encoding for the input data. The DER encoding of the input data will be placed in the der variable. Note that the OCTET STRING tag is... asn1_parser2array Function that generates a C structure from an ASN1 file. Creates a file containing a C vector to use to manage the definitions included in inputFileName file... asn1_parser2tree Function used to start the parse algorithm. Creates the structures needed to manage the definitions included in file file. asn1_perror Prints a string to stderr with a description of an error. This function is like perror(). The only difference is that it accepts an error returned by a libtasn1... asn1_print_structure Prints on the out file descriptor the structure's tree starting from the name element inside the structure structure . asn1_read_node_value Returns the value a data node inside a asn1_node structure. The data returned should be handled as constant values. asn1_read_tag Returns the TAG and the CLASS of one element inside a structure. CLASS can have one of these constants: ASN1_CLASS_APPLICATION, ASN1_CLASS_UNIVERSAL... asn1_read_value Returns the value of one element inside a structure. If an element is OPTIONAL and this returns ASN1_ELEMENT_NOT_FOUND, it means that this element wasn't... asn1_read_value_type Returns the type and value of one element inside a structure. If an element is OPTIONAL and this returns ASN1_ELEMENT_NOT_FOUND, it means that this element... asn1_strerror Returns a string with a description of an error. This function is similar to strerror. The only difference is that it accepts an error (number) returned by a... asn1_write_value Set the value of one element inside a structure. If an element is OPTIONAL and you want to delete it, you must use the value=NULL and len=0.