Next: , Previous: , Up: ASN.1 structure handling   [Contents][Index]


2.4 Library Notes

The header file of this library is libtasn1.h.

The main type used in it is asn1_node, and it’s used to store the ASN.1 definitions and structures (instances).

The NULL constant can be used for the variable initialization. For example:

 asn1_node definitions = NULL;

Some functions require an errorDescription argument of type char *, pointing to a pre-allocated buffer of at least ASN1_MAX_ERROR_DESCRIPTION_SIZE bytes size (e.g., as in ‘char description[ASN1_MAX_ERROR_DESCRIPTION_SIZE];’).

ASN1_MAX_NAME_SIZE is the maximum number of characters allowed for an ASN.1 identifier.