Lines Matching defs:creds
183 * Return TRUE if `mcreds' and `creds' are equal (`whichfields'
191 * - KRB5_TC_MATCH_FLAGS Make sure that all ticket flags set in mcreds are also present in creds .
193 * - KRB5_TC_MATCH_TIMES Compares only the expiration times of the creds.
201 * @param creds cred to compare with.
203 * @return return TRUE if mcred and creds are equal, FALSE if not.
210 const krb5_creds * mcreds, const krb5_creds * creds)
217 creds->server);
220 creds->server);
226 creds->client);
229 creds->client);
233 match = mcreds->session.keytype == creds->session.keytype;
236 match = mcreds->flags.i == creds->flags.i;
239 match = (creds->flags.i & mcreds->flags.i) == mcreds->flags.i;
242 match = krb5_times_equal(&mcreds->times, &creds->times);
246 match = (mcreds->times.renew_till <= creds->times.renew_till) &&
247 (mcreds->times.endtime <= creds->times.endtime);
251 if(mcreds->authdata.len != creds->authdata.len)
256 creds->authdata.val[i].ad_type) &&
258 &creds->authdata.val[i].ad_data) == 0);
261 match = (krb5_data_cmp(&mcreds->second_ticket, &creds->second_ticket) == 0);
265 (creds->second_ticket.length == 0));
271 * Returns the ticket flags for the credentials in creds.
274 * @param creds credential to get ticket flags from
282 krb5_creds_get_ticket_flags(krb5_creds *creds)
284 return TicketFlags2int(creds->flags.b);