xref: /freebsd/crypto/heimdal/kcm/kcm-protos.h (revision 38f1b189cd839bd8aa122ae06cc084810ca1e395)
1 /* This is a generated file */
2 #ifndef __kcm_protos_h__
3 #define __kcm_protos_h__
4 
5 #include <stdarg.h>
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 krb5_error_code
12 kcm_access (
13 	krb5_context /*context*/,
14 	kcm_client */*client*/,
15 	kcm_operation /*opcode*/,
16 	kcm_ccache /*ccache*/);
17 
18 krb5_error_code
19 kcm_ccache_acquire (
20 	krb5_context /*context*/,
21 	kcm_ccache /*ccache*/,
22 	krb5_creds **/*credp*/);
23 
24 krb5_error_code
25 kcm_ccache_destroy (
26 	krb5_context /*context*/,
27 	const char */*name*/);
28 
29 krb5_error_code
30 kcm_ccache_destroy_client (
31 	krb5_context /*context*/,
32 	kcm_client */*client*/,
33 	const char */*name*/);
34 
35 krb5_error_code
36 kcm_ccache_destroy_if_empty (
37 	krb5_context /*context*/,
38 	kcm_ccache /*ccache*/);
39 
40 krb5_error_code
41 kcm_ccache_enqueue_default (
42 	krb5_context /*context*/,
43 	kcm_ccache /*ccache*/,
44 	krb5_creds */*newcred*/);
45 
46 struct kcm_creds *
47 kcm_ccache_find_cred_uuid (
48 	krb5_context /*context*/,
49 	kcm_ccache /*ccache*/,
50 	kcmuuid_t /*uuid*/);
51 
52 char *
53 kcm_ccache_first_name (kcm_client */*client*/);
54 
55 krb5_error_code
56 kcm_ccache_gen_new (
57 	krb5_context /*context*/,
58 	pid_t /*pid*/,
59 	uid_t /*uid*/,
60 	gid_t /*gid*/,
61 	kcm_ccache */*ccache*/);
62 
63 krb5_error_code
64 kcm_ccache_get_uuids (
65 	krb5_context /*context*/,
66 	kcm_client */*client*/,
67 	kcm_operation /*opcode*/,
68 	krb5_storage */*sp*/);
69 
70 krb5_error_code
71 kcm_ccache_new (
72 	krb5_context /*context*/,
73 	const char */*name*/,
74 	kcm_ccache */*ccache*/);
75 
76 krb5_error_code
77 kcm_ccache_new_client (
78 	krb5_context /*context*/,
79 	kcm_client */*client*/,
80 	const char */*name*/,
81 	kcm_ccache */*ccache_p*/);
82 
83 char *kcm_ccache_nextid (
84 	pid_t /*pid*/,
85 	uid_t /*uid*/,
86 	gid_t /*gid*/);
87 
88 krb5_error_code
89 kcm_ccache_refresh (
90 	krb5_context /*context*/,
91 	kcm_ccache /*ccache*/,
92 	krb5_creds **/*credp*/);
93 
94 krb5_error_code
95 kcm_ccache_remove_cred (
96 	krb5_context /*context*/,
97 	kcm_ccache /*ccache*/,
98 	krb5_flags /*whichfields*/,
99 	const krb5_creds */*mcreds*/);
100 
101 krb5_error_code
102 kcm_ccache_remove_cred_internal (
103 	krb5_context /*context*/,
104 	kcm_ccache /*ccache*/,
105 	krb5_flags /*whichfields*/,
106 	const krb5_creds */*mcreds*/);
107 
108 krb5_error_code
109 kcm_ccache_remove_creds (
110 	krb5_context /*context*/,
111 	kcm_ccache /*ccache*/);
112 
113 krb5_error_code
114 kcm_ccache_remove_creds_internal (
115 	krb5_context /*context*/,
116 	kcm_ccache /*ccache*/);
117 
118 krb5_error_code
119 kcm_ccache_resolve (
120 	krb5_context /*context*/,
121 	const char */*name*/,
122 	kcm_ccache */*ccache*/);
123 
124 krb5_error_code
125 kcm_ccache_resolve_by_uuid (
126 	krb5_context /*context*/,
127 	kcmuuid_t /*uuid*/,
128 	kcm_ccache */*ccache*/);
129 
130 krb5_error_code
131 kcm_ccache_resolve_client (
132 	krb5_context /*context*/,
133 	kcm_client */*client*/,
134 	kcm_operation /*opcode*/,
135 	const char */*name*/,
136 	kcm_ccache */*ccache*/);
137 
138 krb5_error_code
139 kcm_ccache_retrieve_cred (
140 	krb5_context /*context*/,
141 	kcm_ccache /*ccache*/,
142 	krb5_flags /*whichfields*/,
143 	const krb5_creds */*mcreds*/,
144 	krb5_creds **/*credp*/);
145 
146 krb5_error_code
147 kcm_ccache_retrieve_cred_internal (
148 	krb5_context /*context*/,
149 	kcm_ccache /*ccache*/,
150 	krb5_flags /*whichfields*/,
151 	const krb5_creds */*mcreds*/,
152 	krb5_creds **/*creds*/);
153 
154 krb5_error_code
155 kcm_ccache_store_cred (
156 	krb5_context /*context*/,
157 	kcm_ccache /*ccache*/,
158 	krb5_creds */*creds*/,
159 	int /*copy*/);
160 
161 krb5_error_code
162 kcm_ccache_store_cred_internal (
163 	krb5_context /*context*/,
164 	kcm_ccache /*ccache*/,
165 	krb5_creds */*creds*/,
166 	int /*copy*/,
167 	krb5_creds **/*credp*/);
168 
169 krb5_error_code
170 kcm_chmod (
171 	krb5_context /*context*/,
172 	kcm_client */*client*/,
173 	kcm_ccache /*ccache*/,
174 	uint16_t /*mode*/);
175 
176 krb5_error_code
177 kcm_chown (
178 	krb5_context /*context*/,
179 	kcm_client */*client*/,
180 	kcm_ccache /*ccache*/,
181 	uid_t /*uid*/,
182 	gid_t /*gid*/);
183 
184 krb5_error_code
185 kcm_cleanup_events (
186 	krb5_context /*context*/,
187 	kcm_ccache /*ccache*/);
188 
189 void
190 kcm_configure (
191 	int /*argc*/,
192 	char **/*argv*/);
193 
194 krb5_error_code
195 kcm_debug_ccache (krb5_context /*context*/);
196 
197 krb5_error_code
198 kcm_debug_events (krb5_context /*context*/);
199 
200 krb5_error_code
201 kcm_dispatch (
202 	krb5_context /*context*/,
203 	kcm_client */*client*/,
204 	krb5_data */*req_data*/,
205 	krb5_data */*resp_data*/);
206 
207 krb5_error_code
208 kcm_enqueue_event (
209 	krb5_context /*context*/,
210 	kcm_event */*event*/);
211 
212 krb5_error_code
213 kcm_enqueue_event_internal (
214 	krb5_context /*context*/,
215 	kcm_event */*event*/);
216 
217 krb5_error_code
218 kcm_enqueue_event_relative (
219 	krb5_context /*context*/,
220 	kcm_event */*event*/);
221 
222 krb5_error_code
223 kcm_internal_ccache (
224 	krb5_context /*context*/,
225 	kcm_ccache /*c*/,
226 	krb5_ccache /*id*/);
227 
228 int
229 kcm_is_same_session (
230 	kcm_client */*client*/,
231 	uid_t /*uid*/,
232 	pid_t /*session*/);
233 
234 void
235 kcm_log (
236 	int /*level*/,
237 	const char */*fmt*/,
238 	...);
239 
240 char*
241 kcm_log_msg (
242 	int /*level*/,
243 	const char */*fmt*/,
244 	...);
245 
246 char*
247 kcm_log_msg_va (
248 	int /*level*/,
249 	const char */*fmt*/,
250 	va_list /*ap*/);
251 
252 const char *
253 kcm_op2string (kcm_operation /*opcode*/);
254 
255 void
256 kcm_openlog (void);
257 
258 krb5_error_code
259 kcm_release_ccache (
260 	krb5_context /*context*/,
261 	kcm_ccache /*c*/);
262 
263 krb5_error_code
264 kcm_remove_event (
265 	krb5_context /*context*/,
266 	kcm_event */*event*/);
267 
268 krb5_error_code
269 kcm_retain_ccache (
270 	krb5_context /*context*/,
271 	kcm_ccache /*ccache*/);
272 
273 krb5_error_code
274 kcm_run_events (
275 	krb5_context /*context*/,
276 	time_t /*now*/);
277 
278 void
279 kcm_service (
280 	void */*ctx*/,
281 	const heim_idata */*req*/,
282 	const heim_icred /*cred*/,
283 	heim_ipc_complete /*complete*/,
284 	heim_sipc_call /*cctx*/);
285 
286 void
287 kcm_session_add (pid_t /*session_id*/);
288 
289 void
290 kcm_session_setup_handler (void);
291 
292 krb5_error_code
293 kcm_zero_ccache_data (
294 	krb5_context /*context*/,
295 	kcm_ccache /*cache*/);
296 
297 krb5_error_code
298 kcm_zero_ccache_data_internal (
299 	krb5_context /*context*/,
300 	kcm_ccache_data */*cache*/);
301 
302 #ifdef __cplusplus
303 }
304 #endif
305 
306 #endif /* __kcm_protos_h__ */
307