Lines Matching refs:mcreds
210 const krb5_creds * mcreds, const krb5_creds * creds) in krb5_compare_creds() argument
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()
233 match = mcreds->session.keytype == creds->session.keytype; in krb5_compare_creds()
236 match = mcreds->flags.i == creds->flags.i; in krb5_compare_creds()
239 match = (creds->flags.i & mcreds->flags.i) == mcreds->flags.i; in krb5_compare_creds()
242 match = krb5_times_equal(&mcreds->times, &creds->times); in krb5_compare_creds()
246 match = (mcreds->times.renew_till <= creds->times.renew_till) && in krb5_compare_creds()
247 (mcreds->times.endtime <= creds->times.endtime); in krb5_compare_creds()
251 if(mcreds->authdata.len != creds->authdata.len) 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()
257 (krb5_data_cmp(&mcreds->authdata.val[i].ad_data, in krb5_compare_creds()
261 match = (krb5_data_cmp(&mcreds->second_ticket, &creds->second_ticket) == 0); in krb5_compare_creds()
264 match = ((mcreds->second_ticket.length == 0) == in krb5_compare_creds()