gsserrmap *p = k5_getspecific(K5_KEY_GSS_KRB5_ERROR_MESSAGE);
char *msg = NULL;
#ifdef DEBUG
- fprintf(stderr, "%s(%lu, p=%p)", __func__, (unsigned long) minor_code,
+ fprintf(stderr, "%s(%lu, p=%p)", __FUNCTION__, (unsigned long) minor_code,
(void *) p);
#endif
if (p) {
int ret;
#ifdef DEBUG
- fprintf(stderr, "%s(%lu, %s)", __func__, (unsigned long) minor_code, msg);
+ fprintf(stderr, "%s(%lu, %s)", __FUNCTION__, (unsigned long) minor_code, msg);
#endif
p = k5_getspecific(K5_KEY_GSS_KRB5_ERROR_MESSAGE);
if (!p) {
char *s;
#ifdef DEBUG
- fprintf(stderr, "%s(%lu, ctx=%p)\n", __func__,
+ fprintf(stderr, "%s(%lu, ctx=%p)\n", __FUNCTION__,
(unsigned long) minor_code, (void *)ctx);
#endif
s = (char *)krb5_get_error_message(ctx, (krb5_error_code)minor_code);
#ifdef DEBUG
- fprintf(stderr, "%s(%lu, ctx=%p) saving: %s\n", __func__,
+ fprintf(stderr, "%s(%lu, ctx=%p) saving: %s\n", __FUNCTION__,
(unsigned long) minor_code, (void *)ctx, s);
#endif
save_error_string(minor_code, s);
/* The get_error_message call above resets the error message in
ctx. Put it back, in case we make this call again *sigh*. */
- krb5_set_error_message(ctx, (krb5_error_code)minor_code, "%s", s);
+ k5_setmsg(ctx, (krb5_error_code)minor_code, "%s", s);
krb5_free_error_message(ctx, s);
}
void krb5_gss_delete_error_info(void *p)