1 .\" Copyright (c) 2006 - 2007 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_digest.3 20259 2007-02-17 23:49:54Z lha $
40 .Nm krb5_digest_alloc ,
41 .Nm krb5_digest_free ,
42 .Nm krb5_digest_set_server_cb ,
43 .Nm krb5_digest_set_type ,
44 .Nm krb5_digest_set_hostname ,
45 .Nm krb5_digest_get_server_nonce ,
46 .Nm krb5_digest_set_server_nonce ,
47 .Nm krb5_digest_get_opaque ,
48 .Nm krb5_digest_set_opaque ,
49 .Nm krb5_digest_get_identifier ,
50 .Nm krb5_digest_set_identifier ,
51 .Nm krb5_digest_init_request ,
52 .Nm krb5_digest_set_client_nonce ,
53 .Nm krb5_digest_set_digest ,
54 .Nm krb5_digest_set_username ,
55 .Nm krb5_digest_set_authid ,
56 .Nm krb5_digest_set_authentication_user ,
57 .Nm krb5_digest_set_realm ,
58 .Nm krb5_digest_set_method ,
59 .Nm krb5_digest_set_uri ,
60 .Nm krb5_digest_set_nonceCount ,
61 .Nm krb5_digest_set_qop ,
62 .Nm krb5_digest_request ,
63 .Nm krb5_digest_get_responseData ,
64 .Nm krb5_digest_get_rsp ,
65 .Nm krb5_digest_get_tickets ,
66 .Nm krb5_digest_get_client_binding ,
67 .Nm krb5_digest_get_a1_hash
68 .Nd remote digest (HTTP-DIGEST, SASL, CHAP) suppport
70 Kerberos 5 Library (libkrb5, -lkrb5)
74 .Li "typedef struct krb5_digest *krb5_digest;"
78 .Fa "krb5_context context"
79 .Fa "krb5_digest *digest"
83 .Fa "krb5_digest digest"
86 .Fo krb5_digest_set_type
87 .Fa "krb5_context context"
88 .Fa "krb5_digest digest"
89 .Fa "const char *type"
92 .Fo krb5_digest_set_server_cb
93 .Fa "krb5_context context"
94 .Fa "krb5_digest digest"
95 .Fa "const char *type"
96 .Fa "const char *binding"
99 .Fo krb5_digest_set_hostname
100 .Fa "krb5_context context"
101 .Fa "krb5_digest digest"
102 .Fa "const char *hostname"
105 .Fo krb5_digest_get_server_nonce
106 .Fa "krb5_context context"
107 .Fa "krb5_digest digest"
110 .Fo krb5_digest_set_server_nonce
111 .Fa "krb5_context context"
112 .Fa "krb5_digest digest"
113 .Fa "const char *nonce"
116 .Fo krb5_digest_get_opaque
117 .Fa "krb5_context context"
118 .Fa "krb5_digest digest"
121 .Fo krb5_digest_set_opaque
122 .Fa "krb5_context context"
123 .Fa "krb5_digest digest"
124 .Fa "const char *opaque"
127 .Fo krb5_digest_get_identifier
128 .Fa "krb5_context context"
129 .Fa "krb5_digest digest"
132 .Fo krb5_digest_set_identifier
133 .Fa "krb5_context context"
134 .Fa "krb5_digest digest"
138 .Fo krb5_digest_init_request
139 .Fa "krb5_context context"
140 .Fa "krb5_digest digest"
141 .Fa "krb5_realm realm"
142 .Fa "krb5_ccache ccache"
145 .Fo krb5_digest_set_client_nonce
146 .Fa "krb5_context context"
147 .Fa "krb5_digest digest"
148 .Fa "const char *nonce"
151 .Fo krb5_digest_set_digest
152 .Fa "krb5_context context"
153 .Fa "krb5_digest digest"
154 .Fa "const char *dgst"
157 .Fo krb5_digest_set_username
158 .Fa "krb5_context context"
159 .Fa "krb5_digest digest"
160 .Fa "const char *username"
163 .Fo krb5_digest_set_authid
164 .Fa "krb5_context context"
165 .Fa "krb5_digest digest"
166 .Fa "const char *authid"
169 .Fo krb5_digest_set_authentication_user
170 .Fa "krb5_context context"
171 .Fa "krb5_digest digest"
172 .Fa "krb5_principal authentication_user"
175 .Fo krb5_digest_set_realm
176 .Fa "krb5_context context"
177 .Fa "krb5_digest digest"
178 .Fa "const char *realm"
181 .Fo krb5_digest_set_method
182 .Fa "krb5_context context"
183 .Fa "krb5_digest digest"
184 .Fa "const char *method"
187 .Fo krb5_digest_set_uri
188 .Fa "krb5_context context"
189 .Fa "krb5_digest digest"
190 .Fa "const char *uri"
193 .Fo krb5_digest_set_nonceCount
194 .Fa "krb5_context context"
195 .Fa "krb5_digest digest"
196 .Fa "const char *nonce_count"
199 .Fo krb5_digest_set_qop
200 .Fa "krb5_context context"
201 .Fa "krb5_digest digest"
202 .Fa "const char *qop"
205 .Fo krb5_digest_request
206 .Fa "krb5_context context"
207 .Fa "krb5_digest digest"
208 .Fa "krb5_realm realm"
209 .Fa "krb5_ccache ccache"
212 .Fo krb5_digest_get_responseData
213 .Fa "krb5_context context"
214 .Fa "krb5_digest digest"
217 .Fo krb5_digest_get_rsp
218 .Fa "krb5_context context"
219 .Fa "krb5_digest digest"
222 .Fo krb5_digest_get_tickets
223 .Fa "krb5_context context"
224 .Fa "krb5_digest digest"
225 .Fa "Ticket **tickets"
228 .Fo krb5_digest_get_client_binding
229 .Fa "krb5_context context"
230 .Fa "krb5_digest digest"
235 .Fo krb5_digest_get_a1_hash
236 .Fa "krb5_context context"
237 .Fa "krb5_digest digest"
238 .Fa "krb5_data *data"
242 .Fn krb5_digest_alloc
243 function allocatates the
245 structure. The structure should be freed with
247 when it is no longer being used.
249 .Fn krb5_digest_alloc
250 returns 0 to indicate success.
251 Otherwise an kerberos code is returned and the pointer that