Next: , Previous: , Up: Function reference   [Contents][Index]


4.4 Error handling functions

asn1_perror

Function: void asn1_perror (int error)

error: is an error returned by a libtasn1 function.

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 function.

Since: 1.6

asn1_strerror

Function: const char * asn1_strerror (int error)

error: is an error returned by a libtasn1 function.

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 libtasn1 function.

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

Since: 1.6