Next: , Previous: DER functions, Up: Function reference


3.4 Error handling functions

libtasn1_perror

— Function: void libtasn1_perror (asn1_retCode error)

error: is an error returned by a libtasn1 function.

This function is like perror(). The only difference is that it accepts an error returned by a libtasn1 function.

libtasn1_strerror

— Function: const char * libtasn1_strerror (asn1_retCode error)

error: is an error returned by a libtasn1 function.

This function is similar to strerror(). The only difference is that it accepts an error (number) returned by a libtasn1 function.

Returns: Pointer to static zero-terminated string describing error code.