xref: /minix3/crypto/external/bsd/heimdal/dist/lib/krb5/krb5_creds.3 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\"	$NetBSD: krb5_creds.3,v 1.1.1.3 2014/04/24 12:45:50 pettai Exp $
2ebfedea0SLionel Sambuc.\"
3ebfedea0SLionel Sambuc.\" Copyright (c) 2004, 2006 Kungliga Tekniska Högskolan
4ebfedea0SLionel Sambuc.\" (Royal Institute of Technology, Stockholm, Sweden).
5ebfedea0SLionel Sambuc.\" All rights reserved.
6ebfedea0SLionel Sambuc.\"
7ebfedea0SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without
8ebfedea0SLionel Sambuc.\" modification, are permitted provided that the following conditions
9ebfedea0SLionel Sambuc.\" are met:
10ebfedea0SLionel Sambuc.\"
11ebfedea0SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright
12ebfedea0SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer.
13ebfedea0SLionel Sambuc.\"
14ebfedea0SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright
15ebfedea0SLionel Sambuc.\"    notice, this list of conditions and the following disclaimer in the
16ebfedea0SLionel Sambuc.\"    documentation and/or other materials provided with the distribution.
17ebfedea0SLionel Sambuc.\"
18ebfedea0SLionel Sambuc.\" 3. Neither the name of the Institute nor the names of its contributors
19ebfedea0SLionel Sambuc.\"    may be used to endorse or promote products derived from this software
20ebfedea0SLionel Sambuc.\"    without specific prior written permission.
21ebfedea0SLionel Sambuc.\"
22ebfedea0SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
23ebfedea0SLionel Sambuc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24ebfedea0SLionel Sambuc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25ebfedea0SLionel Sambuc.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
26ebfedea0SLionel Sambuc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27ebfedea0SLionel Sambuc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28ebfedea0SLionel Sambuc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29ebfedea0SLionel Sambuc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30ebfedea0SLionel Sambuc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31ebfedea0SLionel Sambuc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32ebfedea0SLionel Sambuc.\" SUCH DAMAGE.
33ebfedea0SLionel Sambuc.\"
34ebfedea0SLionel Sambuc.\" Id
35ebfedea0SLionel Sambuc.\"
36ebfedea0SLionel Sambuc.Dd May  1, 2006
37ebfedea0SLionel Sambuc.Dt KRB5_CREDS 3
38ebfedea0SLionel Sambuc.Os
39ebfedea0SLionel Sambuc.Sh NAME
40ebfedea0SLionel Sambuc.Nm krb5_creds ,
41ebfedea0SLionel Sambuc.Nm krb5_copy_creds ,
42ebfedea0SLionel Sambuc.Nm krb5_copy_creds_contents ,
43ebfedea0SLionel Sambuc.Nm krb5_free_creds ,
44ebfedea0SLionel Sambuc.Nm krb5_free_cred_contents
45ebfedea0SLionel Sambuc.Nd Kerberos 5 credential handling functions
46ebfedea0SLionel Sambuc.Sh LIBRARY
47ebfedea0SLionel SambucKerberos 5 Library (libkrb5, -lkrb5)
48ebfedea0SLionel Sambuc.Sh SYNOPSIS
49ebfedea0SLionel Sambuc.In krb5/krb5.h
50ebfedea0SLionel Sambuc.Ft krb5_error_code
51ebfedea0SLionel Sambuc.Fo krb5_copy_creds
52ebfedea0SLionel Sambuc.Fa "krb5_context context"
53ebfedea0SLionel Sambuc.Fa "const krb5_creds *incred"
54ebfedea0SLionel Sambuc.Fa "krb5_creds **outcred"
55ebfedea0SLionel Sambuc.Fc
56ebfedea0SLionel Sambuc.Ft krb5_error_code
57ebfedea0SLionel Sambuc.Fo krb5_copy_creds_contents
58ebfedea0SLionel Sambuc.Fa "krb5_context context"
59ebfedea0SLionel Sambuc.Fa "const krb5_creds *incred"
60ebfedea0SLionel Sambuc.Fa "krb5_creds *outcred"
61ebfedea0SLionel Sambuc.Fc
62ebfedea0SLionel Sambuc.Ft krb5_error_code
63ebfedea0SLionel Sambuc.Fo krb5_free_creds
64ebfedea0SLionel Sambuc.Fa "krb5_context context"
65ebfedea0SLionel Sambuc.Fa "krb5_creds *outcred"
66ebfedea0SLionel Sambuc.Fc
67ebfedea0SLionel Sambuc.Ft krb5_error_code
68ebfedea0SLionel Sambuc.Fo krb5_free_cred_contents
69ebfedea0SLionel Sambuc.Fa "krb5_context context"
70ebfedea0SLionel Sambuc.Fa "krb5_creds *cred"
71ebfedea0SLionel Sambuc.Fc
72ebfedea0SLionel Sambuc.Sh DESCRIPTION
73ebfedea0SLionel Sambuc.Vt krb5_creds
74ebfedea0SLionel Sambucholds Kerberos credentials:
75ebfedea0SLionel Sambuc.Bd -literal -offset
76ebfedea0SLionel Sambuctypedef struct krb5_creds {
77ebfedea0SLionel Sambuc    krb5_principal	client;
78ebfedea0SLionel Sambuc    krb5_principal	server;
79ebfedea0SLionel Sambuc    krb5_keyblock	session;
80ebfedea0SLionel Sambuc    krb5_times		times;
81ebfedea0SLionel Sambuc    krb5_data		ticket;
82ebfedea0SLionel Sambuc    krb5_data		second_ticket;
83ebfedea0SLionel Sambuc    krb5_authdata	authdata;
84ebfedea0SLionel Sambuc    krb5_addresses	addresses;
85ebfedea0SLionel Sambuc    krb5_ticket_flags	flags;
86ebfedea0SLionel Sambuc} krb5_creds;
87ebfedea0SLionel Sambuc.Ed
88ebfedea0SLionel Sambuc.Pp
89ebfedea0SLionel Sambuc.Fn krb5_copy_creds
90ebfedea0SLionel Sambucmakes a copy of
91ebfedea0SLionel Sambuc.Fa incred
92ebfedea0SLionel Sambucto
93ebfedea0SLionel Sambuc.Fa outcred .
94ebfedea0SLionel Sambuc.Fa outcred
95ebfedea0SLionel Sambucshould be freed with
96ebfedea0SLionel Sambuc.Fn krb5_free_creds
97ebfedea0SLionel Sambucby the caller.
98ebfedea0SLionel Sambuc.Pp
99ebfedea0SLionel Sambuc.Fn krb5_copy_creds_contents
100ebfedea0SLionel Sambucmakes a copy of the content of
101ebfedea0SLionel Sambuc.Fa incred
102ebfedea0SLionel Sambucto
103ebfedea0SLionel Sambuc.Fa outcreds .
104ebfedea0SLionel Sambuc.Fa outcreds
105ebfedea0SLionel Sambucshould be freed by the called with
106ebfedea0SLionel Sambuc.Fn krb5_free_creds_contents .
107ebfedea0SLionel Sambuc.Pp
108ebfedea0SLionel Sambuc.Fn krb5_free_creds
109ebfedea0SLionel Sambucfrees the content of the
110ebfedea0SLionel Sambuc.Fa cred
111ebfedea0SLionel Sambucstructure and the structure itself.
112ebfedea0SLionel Sambuc.Pp
113ebfedea0SLionel Sambuc.Fn krb5_free_cred_contents
114ebfedea0SLionel Sambucfrees the content of the
115ebfedea0SLionel Sambuc.Fa cred
116ebfedea0SLionel Sambucstructure.
117ebfedea0SLionel Sambuc.Sh SEE ALSO
118ebfedea0SLionel Sambuc.Xr krb5 3 ,
119ebfedea0SLionel Sambuc.Xr krb5_compare_creds 3 ,
120ebfedea0SLionel Sambuc.Xr krb5_get_init_creds 3 ,
121ebfedea0SLionel Sambuc.Xr kerberos 8
122