Package “libtasn1” has 40 man pages.
asn1_array2tree(3) Creates the structures needed to manage the ASN.1 definitions. array is a vector created by asn1_parser2array(). asn1_bit_der(3) 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(3) 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(3) Create a deep copy of a asn1_node variable. That function requires dst to be expanded using asn1_create_element(). asn1_create_element(3) Creates a structure of type source_name . Example using "pkix.asn": rc = asn1_create_element(cert_def, "PKIX1.Certificate", certptr); asn1_decode_simple_ber(3) 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(3) 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(3) Creates the DER encoding for the NAME structure (inside *POINTER structure). asn1_der_decoding(3) 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(3) 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(3) 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(3) 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(3) Create a deep copy of a asn1_node variable. This function will return an exact copy of the provided structure. asn1_encode_simple_der(3) 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(3) 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(3) 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(3) 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(3) 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(3) 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(3) 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_octet_der(3) 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(3) 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(3) Function used to start the parse algorithm. Creates the structures needed to manage the definitions included in file file. asn1_perror(3) 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(3) Prints on the out file descriptor the structure's tree starting from the name element inside the structure structure . asn1_read_node_value(3) Returns the value a data node inside a asn1_node structure. The data returned should be handled as constant values. asn1_read_tag(3) 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(3) 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(3) 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(3) 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(3) 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.