gm_mech_oid must be set
mechanism credentials created by dynamically loaded mechanisms do not work because the gm_mech_oid field is unset for such mechanisms (instead, only gm_mech.gm_mech_oid is).
This commit is contained in:
@@ -315,6 +315,7 @@ _gss_load_mech(void)
|
|||||||
goto bad;
|
goto bad;
|
||||||
|
|
||||||
m->gm_so = so;
|
m->gm_so = so;
|
||||||
|
m->gm_mech_oid = mech_oid;
|
||||||
m->gm_mech.gm_mech_oid = mech_oid;
|
m->gm_mech.gm_mech_oid = mech_oid;
|
||||||
m->gm_mech.gm_flags = 0;
|
m->gm_mech.gm_flags = 0;
|
||||||
m->gm_mech.gm_compat = calloc(1, sizeof(struct gss_mech_compat_desc_struct));
|
m->gm_mech.gm_compat = calloc(1, sizeof(struct gss_mech_compat_desc_struct));
|
||||||
|
Reference in New Issue
Block a user