make the SPNEGO mech store the error itself instead, works for everything except other stackable mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22600 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -107,6 +107,13 @@ _gss_mg_error(gssapi_mech_interface m, OM_uint32 maj, OM_uint32 min)
|
||||
OM_uint32 message_content;
|
||||
struct mg_thread_ctx *mg;
|
||||
|
||||
/*
|
||||
* Mechs without gss_display_status() does
|
||||
* gss_mg_collect_error() by themself.
|
||||
*/
|
||||
if (m->gm_display_status == NULL)
|
||||
return ;
|
||||
|
||||
mg = _gss_mechglue_thread();
|
||||
if (mg == NULL)
|
||||
return;
|
||||
@@ -139,3 +146,12 @@ _gss_mg_error(gssapi_mech_interface m, OM_uint32 maj, OM_uint32 min)
|
||||
mg->min_error.length = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
gss_mg_collect_error(gss_OID mech, OM_uint32 maj, OM_uint32 min)
|
||||
{
|
||||
gssapi_mech_interface m = __gss_get_mechanism(mech);
|
||||
if (m == NULL)
|
||||
return;
|
||||
_gss_mg_error(m, maj, min);
|
||||
}
|
||||
|
Reference in New Issue
Block a user