Previous: Error handling functions, Up: Function reference


3.5 Auxilliary functions

asn1_find_node

— Function: ASN1_TYPE asn1_find_node (ASN1_TYPE pointer, const char * name)

pointer: NODE_ASN element pointer.

name: null terminated string with the element's name to find.

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 first identifier must be the name of *POINTER, otherwise it must be the name of one child of *POINTER.

Return value: the searching result. NULL if not found.

asn1_check_version

— Function: const char * asn1_check_version (const char * req_version)

req_version: Required version number, or NULL.

Check that the 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 passed to this function, no check is done, but the version string is simply returned.

See LIBTASN1_VERSION for a suitable req_version string.

Return value: Version string of run-time library, or NULL if the run-time library does not meet the required version number.