Changeset View
Changeset View
Standalone View
Standalone View
lib/libgssapi/gss_display_status.c
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | [5] = "skipped predecessor token(s) detected", | ||||
v >>= GSS_C_SUPPLEMENTARY_OFFSET; | v >>= GSS_C_SUPPLEMENTARY_OFFSET; | ||||
if (v >= nitems(msgs)) | if (v >= nitems(msgs)) | ||||
return "unknown routine error"; | return "unknown routine error"; | ||||
else | else | ||||
return msgs[v]; | return msgs[v]; | ||||
} | } | ||||
#if defined(__NO_TLS) | |||||
/* | |||||
* These platforms don't support TLS on FreeBSD - threads will just | |||||
* have to step on each other's error values for now. | |||||
*/ | |||||
#define __thread | |||||
#endif | |||||
struct mg_thread_ctx { | struct mg_thread_ctx { | ||||
gss_OID mech; | gss_OID mech; | ||||
OM_uint32 maj_stat; | OM_uint32 maj_stat; | ||||
OM_uint32 min_stat; | OM_uint32 min_stat; | ||||
gss_buffer_desc maj_error; | gss_buffer_desc maj_error; | ||||
gss_buffer_desc min_error; | gss_buffer_desc min_error; | ||||
}; | }; | ||||
static __thread struct mg_thread_ctx last_error_context; | static __thread struct mg_thread_ctx last_error_context; | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |