Lines Matching refs:context
60 * Resets the error strings the hx509 context.
62 * @param context A hx509 context.
68 hx509_clear_error_string(hx509_context context)
70 if (context) {
71 free_error_string(context->error);
72 context->error = NULL;
77 * Add an error message to the hx509 context.
79 * @param context A hx509 context.
91 hx509_set_error_stringv(hx509_context context, int flags, int code,
96 if (context == NULL)
101 hx509_clear_error_string(context);
106 hx509_clear_error_string(context);
113 msg->next = context->error;
114 context->error = msg;
116 free_error_string(context->error);
117 context->error = msg;
124 * @param context A hx509 context.
136 hx509_set_error_string(hx509_context context, int flags, int code,
142 hx509_set_error_stringv(context, flags, code, fmt, ap);
147 * Get an error string from context associated with error_code.
149 * @param context A hx509 context.
158 hx509_get_error_string(hx509_context context, int error_code)
161 hx509_error msg = context->error;
167 cstr = com_right(context->et_list, error_code);
178 for (msg = context->error; msg; msg = msg->next)
202 * @param context A hx509 context.
212 hx509_err(hx509_context context, int exit_code,
222 msg = hx509_get_error_string(context, error_code);