Next: , Previous: Naming, Up: ASN.1 structure handling


1.3 Library Notes

The header file of this library is libtasn1.h.

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

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

      ASN1_TYPE definitions=ASN1_TYPE_EMPTY;

Some functions require a parameter named errorDescription of char* type. The array must be already allocated and must have at least MAX_ERROR_DESCRIPTION_SIZE bytes (E.g, as in char Description[MAX_ERROR_DESCRIPTION_SIZE];).

MAX_NAME_SIZE indicates the maximum number of characters of a name inside a file with ASN1 definitions.