gss_cred_id_t creds = GSS_C_NO_CREDENTIAL, *credptr;
gss_OID_set cred_mechs = GSS_C_NULL_OID_SET;
gss_OID_set intersect_mechs = GSS_C_NULL_OID_SET;
- unsigned int i, j;
+ unsigned int i;
+ int present;
if (spcred == NULL) {
/*
}
for (i = 0; i < spcred->neg_mechs->count; i++) {
- for (j = 0; j < cred_mechs->count; j++) {
- if (!g_OID_equal(&spcred->neg_mechs->elements[i],
- &cred_mechs->elements[j]))
- break;
- }
- if (j == cred_mechs->count)
+ gss_test_oid_set_member(&tmpmin,
+ &spcred->neg_mechs->elements[i],
+ cred_mechs, &present);
+ if (!present)
continue;
ret = gss_add_oid_set_member(minor_status,
&spcred->neg_mechs->elements[i],