• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source4/heimdal/lib/krb5/

Lines Matching refs:context

40  * Clears the error message from the Kerberos 5 context.
42 * @param context The Kerberos 5 context to clear
48 krb5_clear_error_message(krb5_context context)
50 HEIMDAL_MUTEX_lock(context->mutex);
51 if (context->error_string)
52 free(context->error_string);
53 context->error_code = 0;
54 context->error_string = NULL;
55 HEIMDAL_MUTEX_unlock(context->mutex);
59 * Set the context full error string for a specific error code.
62 * @param context Kerberos 5 context
71 krb5_set_error_message(krb5_context context, krb5_error_code ret,
78 krb5_vset_error_message (context, ret, fmt, ap);
83 * Set the context full error string for a specific error code.
85 * @param context Kerberos 5 context
95 krb5_vset_error_message (krb5_context context, krb5_error_code ret,
100 krb5_clear_error_message(context);
101 HEIMDAL_MUTEX_lock(context->mutex);
102 context->error_code = ret;
103 vasprintf(&context->error_string, fmt, args);
104 HEIMDAL_MUTEX_unlock(context->mutex);
109 * Return the error message in context. On error or no error string,
112 * @param context Kerberos 5 context
121 krb5_get_error_string(krb5_context context)
125 HEIMDAL_MUTEX_lock(context->mutex);
126 if (context->error_string)
127 ret = strdup(context->error_string);
128 HEIMDAL_MUTEX_unlock(context->mutex);
133 krb5_have_error_string(krb5_context context)
136 HEIMDAL_MUTEX_lock(context->mutex);
137 str = context->error_string;
138 HEIMDAL_MUTEX_unlock(context->mutex);
143 * Return the error message for `code' in context. On memory
146 * @param context Kerberos 5 context
156 krb5_get_error_message(krb5_context context, krb5_error_code code)
161 HEIMDAL_MUTEX_lock(context->mutex);
162 if (context->error_string &&
163 (code == context->error_code || context->error_code == 0))
165 str = strdup(context->error_string);
167 HEIMDAL_MUTEX_unlock(context->mutex);
171 HEIMDAL_MUTEX_unlock(context->mutex);
176 cstr = krb5_get_err_text(context, code);
190 * @param context Kerberos context
198 krb5_free_error_message(krb5_context context, const char *msg)