Lines Matching refs:mc
39 _gss_copy_cred(struct _gss_mechanism_cred *mc)
42 struct _gss_mech_switch *m = mc->gmc_mech;
50 mc->gmc_cred, mc->gmc_mech_oid,
58 GSS_C_NO_CREDENTIAL, name, mc->gmc_mech_oid,
98 struct _gss_mechanism_cred *mc, *target_mc, *copy_mc;
119 * We go through all the mc attached to the input_cred_handle
121 * gss_add_cred for that mechanism, otherwise we copy the mc
126 SLIST_FOREACH(mc, &cred->gc_mc, gmc_link) {
127 if (gss_oid_equal(mc->gmc_mech_oid, desired_mech)) {
128 target_mc = mc;
130 copy_mc = _gss_copy_cred(mc);
159 mc = malloc(sizeof(struct _gss_mechanism_cred));
160 if (!mc) {
166 mc->gmc_mech = m;
167 mc->gmc_mech_oid = &m->gm_mech_oid;
176 &mc->gmc_cred,
185 free(mc);
188 SLIST_INSERT_HEAD(&new_cred->gc_mc, mc, gmc_link);