/ kcm / kcm-protos.h
kcm-protos.h
  1  /* This is a generated file */
  2  #ifndef __kcm_protos_h__
  3  #define __kcm_protos_h__
  4  
  5  #include <stdarg.h>
  6  
  7  #if !defined(__GNUC__) && !defined(__attribute__)
  8  #define __attribute__(x)
  9  #endif
 10  
 11  #ifdef __cplusplus
 12  extern "C" {
 13  #endif
 14  
 15  krb5_error_code
 16  kcm_access (
 17  	krb5_context /*context*/,
 18  	kcm_client */*client*/,
 19  	kcm_operation /*opcode*/,
 20  	kcm_ccache /*ccache*/);
 21  
 22  krb5_error_code
 23  kcm_principal_access_locked(
 24  	krb5_context /*context*/,
 25  	kcm_client */*client*/,
 26  	krb5_principal server /*server*/,
 27  	kcm_operation /*opcode*/,
 28  	kcm_ccache /*ccache*/);
 29  
 30  void
 31  kcm_cache_remove_session (pid_t /*session*/);
 32  
 33  krb5_error_code
 34  kcm_ccache_acquire_locked (
 35  	krb5_context /*context*/,
 36  	kcm_ccache /*ccache*/,
 37  	time_t */*expire*/);
 38  
 39  krb5_error_code
 40  kcm_ccache_destroy (
 41  	krb5_context /*context*/,
 42  	const char */*name*/);
 43  
 44  krb5_error_code
 45  kcm_ccache_destroy_client (
 46  	krb5_context /*context*/,
 47  	kcm_client */*client*/,
 48  	const char */*name*/);
 49  
 50  krb5_error_code
 51  kcm_ccache_enqueue_default (
 52  	krb5_context /*context*/,
 53  	kcm_ccache /*cache*/,
 54  	krb5_creds */*newcred*/);
 55  
 56  struct kcm_creds *
 57  kcm_ccache_find_cred_uuid_locked (
 58  	krb5_context /*context*/,
 59  	kcm_ccache /*ccache*/,
 60  	kcmuuid_t /*uuid*/);
 61  
 62  char *
 63  kcm_ccache_first_name (kcm_client */*client*/);
 64  
 65  const char *
 66  kcm_client_get_execpath(kcm_client *client);
 67  
 68  krb5_boolean
 69  krb5_has_entitlement(audit_token_t token, CFStringRef entitlement);
 70  
 71  krb5_boolean
 72  krb5_applesigned(krb5_context context, audit_token_t auditToken, const char *identifierToVerify);
 73  
 74  krb5_error_code
 75  kcm_ccache_get_uuids (
 76  	krb5_context /*context*/,
 77  	kcm_client */*client*/,
 78  	kcm_operation /*opcode*/,
 79  	krb5_storage */*sp*/);
 80  
 81  krb5_error_code
 82  kcm_ccache_get_client_principals (
 83  	krb5_context /*context*/,
 84  	kcm_client */*client*/,
 85  	kcm_operation /*opcode*/,
 86  	krb5_storage */*sp*/);
 87  
 88  krb5_error_code
 89  kcm_ccache_new (
 90  	krb5_context /*context*/,
 91  	const char */*name*/,
 92  	kcm_ccache */*ccache*/);
 93  
 94  krb5_error_code
 95  kcm_ccache_new_internal(krb5_context context,
 96  	       const char *name,
 97  	       uid_t uid,
 98  	       pid_t session,
 99  	       kcm_ccache *ccache);
100  
101  krb5_error_code
102  kcm_ccache_new_client (
103  	krb5_context /*context*/,
104  	kcm_client */*client*/,
105  	const char */*name*/,
106  	kcm_ccache */*ccache_p*/);
107  
108  char *kcm_ccache_nextid (
109  	pid_t /*pid*/,
110  	uid_t /*uid*/);
111  
112  krb5_error_code
113  kcm_ccache_refresh_locked (
114  	krb5_context /*context*/,
115  	kcm_ccache /*ccache*/,
116  	time_t */*expire*/);
117  
118  krb5_error_code
119  kcm_ccache_remove_cred (
120  	krb5_context /*context*/,
121  	kcm_ccache /*ccache*/,
122  	krb5_flags /*whichfields*/,
123  	const krb5_creds */*mcreds*/);
124  
125  krb5_error_code
126  kcm_ccache_remove_cred_internal (
127  	krb5_context /*context*/,
128  	kcm_ccache /*ccache*/,
129  	krb5_flags /*whichfields*/,
130  	const krb5_creds */*mcreds*/);
131  
132  krb5_error_code
133  kcm_ccache_remove_creds (
134  	krb5_context /*context*/,
135  	kcm_ccache /*ccache*/);
136  
137  krb5_error_code
138  kcm_ccache_remove_creds_internal (
139  	krb5_context /*context*/,
140  	kcm_ccache /*ccache*/);
141  
142  krb5_error_code
143  kcm_ccache_resolve_by_name (
144  	krb5_context /*context*/,
145  	const char */*name*/,
146  	kcm_ccache */*ccache*/);
147  
148  krb5_error_code
149  kcm_ccache_resolve_by_uuid (
150  	krb5_context /*context*/,
151  	kcmuuid_t /*uuid*/,
152  	kcm_ccache */*ccache*/);
153  
154  krb5_error_code
155  kcm_ccache_resolve_client (
156  	krb5_context /*context*/,
157  	kcm_client */*client*/,
158  	kcm_operation /*opcode*/,
159  	const char */*name*/,
160  	kcm_ccache */*ccache*/);
161  
162  krb5_error_code
163  kcm_ccache_retrieve_cred (
164  	krb5_context /*context*/,
165  	kcm_ccache /*ccache*/,
166  	krb5_flags /*whichfields*/,
167  	const krb5_creds */*mcreds*/,
168  	krb5_creds **/*credp*/);
169  
170  krb5_error_code
171  kcm_ccache_retrieve_cred_internal (
172  	krb5_context /*context*/,
173  	kcm_ccache /*ccache*/,
174  	krb5_flags /*whichfields*/,
175  	const krb5_creds */*mcreds*/,
176  	krb5_creds **/*creds*/);
177  
178  krb5_error_code
179  kcm_ccache_store_cred (
180  	krb5_context /*context*/,
181  	kcm_ccache /*ccache*/,
182  	krb5_creds */*creds*/,
183  	int /*copy*/);
184  
185  krb5_error_code
186  kcm_ccache_store_cred_internal (
187  	krb5_context /*context*/,
188  	kcm_ccache /*ccache*/,
189  	krb5_creds */*creds*/,
190  	kcmuuid_t /* uuid */,
191  	int /*copy*/);
192  
193  krb5_error_code
194  kcm_chmod (
195  	krb5_context /*context*/,
196  	kcm_client */*client*/,
197  	kcm_ccache /*ccache*/,
198  	uint16_t /*mode*/);
199  
200  krb5_error_code
201  kcm_chown (
202  	krb5_context /*context*/,
203  	kcm_client */*client*/,
204  	kcm_ccache /*ccache*/,
205  	uid_t /*uid*/);
206  
207  void
208  kcm_configure (
209  	int /*argc*/,
210  	char **/*argv*/);
211  
212  krb5_error_code
213  kcm_debug_ccache (krb5_context /*context*/);
214  
215  krb5_error_code
216  kcm_debug_events (krb5_context /*context*/);
217  
218  krb5_error_code
219  kcm_dispatch (
220  	krb5_context /*context*/,
221  	kcm_client */*client*/,
222  	krb5_data */*req_data*/,
223  	krb5_data */*resp_data*/);
224  
225  krb5_error_code
226  kcm_internal_ccache (
227  	krb5_context /*context*/,
228  	kcm_ccache /*c*/,
229  	krb5_ccache /*id*/);
230  
231  int
232  kcm_is_same_session_locked (
233  	kcm_client */*client*/,
234  	uid_t /*uid*/,
235  	pid_t /*session*/);
236  
237  void
238  kcm_log (
239  	int /*level*/,
240  	const char */*fmt*/,
241  	...)
242       __attribute__ ((format (printf, 2, 3)));
243  
244  char*
245  kcm_log_msg (
246  	int /*level*/,
247  	const char */*fmt*/,
248  	...)
249       __attribute__ ((format (printf, 2, 3)));
250  
251  char*
252  kcm_log_msg_va (
253  	int /*level*/,
254  	const char */*fmt*/,
255  	va_list /*ap*/)
256       __attribute__ ((format (printf, 2, 0)));
257  
258  const char *
259  kcm_op2string (kcm_operation /*opcode*/);
260  
261  void
262  kcm_openlog (void);
263  
264  krb5_error_code
265  kcm_release_ccache (
266  	krb5_context /*context*/,
267  	kcm_ccache /*c*/);
268  
269  krb5_error_code
270  kcm_retain_ccache (
271  	krb5_context /*context*/,
272  	kcm_ccache /*ccache*/);
273  
274  void
275  kcm_service (
276  	void */*ctx*/,
277  	const heim_idata */*req*/,
278  	const heim_icred /*cred*/,
279  	heim_ipc_complete /*complete*/,
280  	heim_sipc_call /*cctx*/);
281  
282  void
283  kcm_session_add (pid_t /*session_id*/);
284  
285  void
286  kcm_session_setup_handler (void);
287  
288  void
289  kcm_update_renew_time (kcm_ccache /*ccache*/);
290  
291  void
292  kcm_update_expire_time(kcm_ccache, time_t);
293  
294  krb5_error_code
295  kcm_zero_ccache_data (
296  	krb5_context /*context*/,
297  	kcm_ccache /*cache*/);
298  
299  krb5_error_code
300  kcm_zero_ccache_data_internal (
301  	krb5_context /*context*/,
302  	kcm_ccache /*cache*/);
303  
304  void
305  kcm_unparse_cache_data(krb5_context context, krb5_data *data);
306      
307  krb5_error_code
308  kcm_store_io(krb5_context context,
309  	     krb5_uuid uuid,
310  	     void *ptr,
311  	     size_t length,
312  	     krb5_data *data,
313  	     bool encrypt);
314      
315  krb5_error_code
316  kcm_create_key(krb5_uuid uuid);
317  
318  void kcm_read_dump(krb5_context context);
319  void kcm_write_dump(krb5_context context);
320  
321  krb5_error_code
322  kcm_unparse_digest_all(krb5_context context, krb5_storage *sp);
323  
324  krb5_error_code
325  kcm_parse_digest_one(krb5_context context, krb5_storage *sp);
326  
327  krb5_error_code
328  kcm_unparse_wrap(krb5_storage *sp, char *name, int32_t session, int (^wrapped)(krb5_storage *inner));
329  
330  krb5_error_code
331  kcm_unparse_challenge_all(krb5_context context, krb5_storage *sp);
332  
333  krb5_error_code
334  kcm_parse_ntlm_challenge_one(krb5_context context, krb5_storage *sp);
335  
336  
337  krb5_error_code
338  kcm_ccache_update_acquire_status(krb5_context context,
339  				 kcm_ccache ccache,
340  				 int status, krb5_error_code ret);
341  
342  #ifdef __cplusplus
343  }
344  #endif
345  
346  #endif /* __kcm_protos_h__ */