Home | History | Annotate | Download | only in krb5

Lines Matching refs:creds

1 /*	$NetBSD: creds.c,v 1.2 2017/01/28 21:31:49 christos Exp $	*/
182 * Return TRUE if `mcreds' and `creds' are equal (`whichfields'
190 * - KRB5_TC_MATCH_FLAGS Make sure that all ticket flags set in mcreds are also present in creds .
192 * - KRB5_TC_MATCH_TIMES Compares only the expiration times of the creds.
200 * @param creds cred to compare with.
202 * @return return TRUE if mcred and creds are equal, FALSE if not.
209 const krb5_creds * mcreds, const krb5_creds * creds)
216 creds->server);
219 creds->server);
225 creds->client);
228 creds->client);
232 match = mcreds->session.keytype == creds->session.keytype;
235 match = mcreds->flags.i == creds->flags.i;
238 match = (creds->flags.i & mcreds->flags.i) == mcreds->flags.i;
241 match = krb5_times_equal(&mcreds->times, &creds->times);
245 match = (mcreds->times.renew_till <= creds->times.renew_till) &&
246 (mcreds->times.endtime <= creds->times.endtime);
250 if(mcreds->authdata.len != creds->authdata.len)
255 creds->authdata.val[i].ad_type) &&
257 &creds->authdata.val[i].ad_data) == 0);
260 match = (krb5_data_cmp(&mcreds->second_ticket, &creds->second_ticket) == 0);
264 (creds->second_ticket.length == 0));
270 * Returns the ticket flags for the credentials in creds.
273 * @param creds credential to get ticket flags from
281 krb5_creds_get_ticket_flags(krb5_creds *creds)
283 return TicketFlags2int(creds->flags.b);