1 .\" Copyright (c) 2003 - 2004 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" $Heimdal: krb5_ticket.3 19543 2006-12-28 20:48:50Z lha $
40 .Nm krb5_free_ticket ,
41 .Nm krb5_copy_ticket ,
42 .Nm krb5_ticket_get_authorization_data_type ,
43 .Nm krb5_ticket_get_client ,
44 .Nm krb5_ticket_get_server ,
45 .Nm krb5_ticket_get_endtime
46 .Nd Kerberos 5 ticket access and handling functions
48 Kerberos 5 Library (libkrb5, -lkrb5)
56 .Fa "krb5_context context"
57 .Fa "krb5_ticket *ticket"
61 .Fa "krb5_context context"
62 .Fa "const krb5_ticket *from"
63 .Fa "krb5_ticket **to"
66 .Fo krb5_ticket_get_authorization_data_type
67 .Fa "krb5_context context"
68 .Fa "krb5_ticket *ticket"
73 .Fo krb5_ticket_get_client
74 .Fa "krb5_context context"
75 .Fa "const krb5_ticket *ticket"
76 .Fa "krb5_principal *client"
79 .Fo krb5_ticket_get_server
80 .Fa "krb5_context context"
81 .Fa "const krb5_ticket *ticket"
82 .Fa "krb5_principal *server"
85 .Fo krb5_ticket_get_endtime
86 .Fa "krb5_context context"
87 .Fa "const krb5_ticket *ticket"
91 holds a kerberos ticket.
92 The internals of the structure should never be accessed directly,
93 functions exist for extracting information.
99 Used to free the result of
105 copies the content of the ticket
112 .Fn krb5_free_ticket .
114 .Fn krb5_ticket_get_authorization_data_type
115 fetches the authorization data of the type
119 If there isn't any authorization data of type
124 needs to be freed with
128 .Fn krb5_ticket_get_client
130 .Fn krb5_ticket_get_server
131 returns a copy of the client/server principal from the ticket.
132 The principal returned should be free using
133 .Xr krb5_free_principal 3 .
135 .Fn krb5_ticket_get_endtime
136 return the end time of the ticket.