Home | History | Annotate | Download | only in krb5

Lines Matching refs:Ticket

1 /*	$NetBSD: ticket.c,v 1.6 2023/06/19 21:41:45 christos Exp $	*/
41 * Free ticket and content
44 * @param ticket ticket to free
54 krb5_ticket *ticket)
56 free_EncTicketPart(&ticket->ticket);
57 krb5_free_principal(context, ticket->client);
58 krb5_free_principal(context, ticket->server);
59 free(ticket);
64 * Copy ticket and content
67 * @param from ticket to copy
68 * @param to new copy of ticket, free with krb5_free_ticket()
88 if((ret = copy_EncTicketPart(&from->ticket, &tmp->ticket))){
94 free_EncTicketPart(&tmp->ticket);
101 free_EncTicketPart(&tmp->ticket);
110 * Return client principal in ticket
113 * @param ticket ticket to copy
124 const krb5_ticket *ticket,
127 return krb5_copy_principal(context, ticket->client, client);
131 * Return server principal in ticket
134 * @param ticket ticket to copy
145 const krb5_ticket *ticket,
148 return krb5_copy_principal(context, ticket->server, server);
152 * Return end time of ticket
155 * @param ticket ticket to copy
157 * @return end time of ticket
164 const krb5_ticket *ticket)
166 return ticket->ticket.endtime;
170 * Get the flags from the Kerberos ticket
173 * @param ticket Kerberos ticket
175 * @return ticket flags
181 const krb5_ticket *ticket)
183 return TicketFlags2int(ticket->ticket.flags);
359 * Extract the authorization data type of type from the ticket. Store
364 * @param ticket Kerberos ticket
373 krb5_ticket *ticket,
383 ad = ticket->ticket.authorization_data;
384 if (ticket->ticket.authorization_data == NULL) {
386 N_("Ticket have not authorization data", ""));
391 &ticket->ticket.key, ad, 0);
396 N_("Ticket have not "
547 * Here we must validate that the AS returned a ticket of the expected type
549 * anonymous ticket. If this is a TGS request, we're done. Then if the
586 N_("Anonymous ticket does not contain anonymous "
642 N_("Failed to decode encpart in ticket", ""));
888 /* extract ticket */
889 ASN1_MALLOC_ENCODE(Ticket, creds->ticket.data, creds->ticket.length,
890 &rep->kdc_rep.ticket, &len, ret);
893 if (creds->ticket.length != len)