Functions | |
| void | hx509_clear_error_string (hx509_context context) |
| void | hx509_set_error_stringv (hx509_context context, int flags, int code, const char *fmt, va_list ap) |
| void | hx509_set_error_string (hx509_context context, int flags, int code, const char *fmt,...) |
| char * | hx509_get_error_string (hx509_context context, int error_code) |
| void | hx509_free_error_string (char *str) |
| void | hx509_err (hx509_context context, int exit_code, int error_code, const char *fmt,...) |
| void hx509_clear_error_string | ( | hx509_context | context | ) |
Resets the error strings the hx509 context.
| context | A hx509 context. |
| void hx509_err | ( | hx509_context | context, | |
| int | exit_code, | |||
| int | error_code, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
Print error message and fatally exit from error code
| context | A hx509 context. | |
| exit_code | exit() code from process. | |
| error_code | Error code for the reason to exit. | |
| fmt | format string with the exit message. | |
| ... | argument to format string. |
| void hx509_free_error_string | ( | char * | str | ) |
| char* hx509_get_error_string | ( | hx509_context | context, | |
| int | error_code | |||
| ) |
Get an error string from context associated with error_code.
| context | A hx509 context. | |
| error_code | Get error message for this error code. |
| void hx509_set_error_string | ( | hx509_context | context, | |
| int | flags, | |||
| int | code, | |||
| const char * | fmt, | |||
| ... | ||||
| ) |
See hx509_set_error_stringv().
| context | A hx509 context. | |
| flags |
| |
| code | error code related to error message | |
| fmt | error message format | |
| ... | arguments to error message format |
| void hx509_set_error_stringv | ( | hx509_context | context, | |
| int | flags, | |||
| int | code, | |||
| const char * | fmt, | |||
| va_list | ap | |||
| ) |
Add an error message to the hx509 context.
| context | A hx509 context. | |
| flags |
| |
| code | error code related to error message | |
| fmt | error message format | |
| ap | arguments to error message format |
1.5.4