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