Lines Matching refs:match

212     krb5_boolean match = TRUE;  in krb5_compare_creds()  local
214 if (match && mcreds->server) { in krb5_compare_creds()
216 match = krb5_principal_compare_any_realm (context, mcreds->server, in krb5_compare_creds()
219 match = krb5_principal_compare (context, mcreds->server, in krb5_compare_creds()
223 if (match && mcreds->client) { in krb5_compare_creds()
225 match = krb5_principal_compare_any_realm (context, mcreds->client, in krb5_compare_creds()
228 match = krb5_principal_compare (context, mcreds->client, in krb5_compare_creds()
232 if (match && (whichfields & KRB5_TC_MATCH_KEYTYPE)) in krb5_compare_creds()
233 match = mcreds->session.keytype == creds->session.keytype; in krb5_compare_creds()
235 if (match && (whichfields & KRB5_TC_MATCH_FLAGS_EXACT)) in krb5_compare_creds()
236 match = mcreds->flags.i == creds->flags.i; in krb5_compare_creds()
238 if (match && (whichfields & KRB5_TC_MATCH_FLAGS)) in krb5_compare_creds()
239 match = (creds->flags.i & mcreds->flags.i) == mcreds->flags.i; in krb5_compare_creds()
241 if (match && (whichfields & KRB5_TC_MATCH_TIMES_EXACT)) in krb5_compare_creds()
242 match = krb5_times_equal(&mcreds->times, &creds->times); in krb5_compare_creds()
244 if (match && (whichfields & KRB5_TC_MATCH_TIMES)) in krb5_compare_creds()
246 match = (mcreds->times.renew_till <= creds->times.renew_till) && in krb5_compare_creds()
249 if (match && (whichfields & KRB5_TC_MATCH_AUTHDATA)) { in krb5_compare_creds()
252 match = FALSE; in krb5_compare_creds()
254 for(i = 0; match && i < mcreds->authdata.len; i++) in krb5_compare_creds()
255 match = (mcreds->authdata.val[i].ad_type == in krb5_compare_creds()
260 if (match && (whichfields & KRB5_TC_MATCH_2ND_TKT)) in krb5_compare_creds()
261 match = (krb5_data_cmp(&mcreds->second_ticket, &creds->second_ticket) == 0); in krb5_compare_creds()
263 if (match && (whichfields & KRB5_TC_MATCH_IS_SKEY)) in krb5_compare_creds()
264 match = ((mcreds->second_ticket.length == 0) == in krb5_compare_creds()
267 return match; in krb5_compare_creds()