Lines Matching full:err

45     cc_int32 err = ccNoError;  in ccs_cache_collection_new()  local
48 if (!out_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_new()
50 if (!err) { in ccs_cache_collection_new()
55 err = cci_check_error (ccErrNoMem); in ccs_cache_collection_new()
59 if (!err) { in ccs_cache_collection_new()
60 err = ccs_server_new_identifier (&cache_collection->identifier); in ccs_cache_collection_new()
63 if (!err) { in ccs_cache_collection_new()
64 err = ccs_lock_state_new (&cache_collection->lock_state, in ccs_cache_collection_new()
70 if (!err) { in ccs_cache_collection_new()
71 err = ccs_ccache_list_new (&cache_collection->ccaches); in ccs_cache_collection_new()
74 if (!err) { in ccs_cache_collection_new()
75 err = ccs_callback_array_new (&cache_collection->change_callbacks); in ccs_cache_collection_new()
78 if (!err) { in ccs_cache_collection_new()
79 err = ccs_cache_collection_changed (cache_collection); in ccs_cache_collection_new()
82 if (!err) { in ccs_cache_collection_new()
89 return cci_check_error (err); in ccs_cache_collection_new()
96 cc_int32 err = ccNoError; in ccs_cache_collection_release() local
98 if (!err && io_cache_collection) { in ccs_cache_collection_release()
106 return cci_check_error (err); in ccs_cache_collection_release()
115 cc_int32 err = ccNoError; in ccs_cache_collection_compare_identifier() local
117 if (!in_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_compare_identifier()
118 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_compare_identifier()
119 if (!out_equal ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_compare_identifier()
121 if (!err) { in ccs_cache_collection_compare_identifier()
122 err = cci_identifier_compare (in_cache_collection->identifier, in ccs_cache_collection_compare_identifier()
127 return cci_check_error (err); in ccs_cache_collection_compare_identifier()
138 cc_int32 err = ccNoError; in ccs_cache_collection_changed() local
141 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_changed()
143 if (!err) { in ccs_cache_collection_changed()
153 if (!err) { in ccs_cache_collection_changed()
154 err = krb5int_ipc_stream_new (&reply_data); in ccs_cache_collection_changed()
157 if (!err) { in ccs_cache_collection_changed()
158 err = krb5int_ipc_stream_write_time (reply_data, io_cache_collection->last_changed_time); in ccs_cache_collection_changed()
161 if (!err) { in ccs_cache_collection_changed()
166 for (i = 0; !err && i < count; i++) { in ccs_cache_collection_changed()
169 err = ccs_callback_reply_to_client (callback, reply_data); in ccs_cache_collection_changed()
171 if (!err) { in ccs_cache_collection_changed()
173 err = ccs_callback_array_remove (io_cache_collection->change_callbacks, i); in ccs_cache_collection_changed()
179 if (!err) { in ccs_cache_collection_changed()
180 err = ccs_os_notify_cache_collection_changed (io_cache_collection); in ccs_cache_collection_changed()
185 return cci_check_error (err); in ccs_cache_collection_changed()
193 cc_int32 err = ccNoError; in ccs_cache_collection_invalidate_change_callback() local
195 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_invalidate_change_callback()
196 if (!in_callback ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_invalidate_change_callback()
198 if (!err) { in ccs_cache_collection_invalidate_change_callback()
204 for (i = 0; !err && i < count; i++) { in ccs_cache_collection_invalidate_change_callback()
209 err = ccs_callback_array_remove (cache_collection->change_callbacks, i); in ccs_cache_collection_invalidate_change_callback()
215 return cci_check_error (err); in ccs_cache_collection_invalidate_change_callback()
228 cc_int32 err = ccNoError; in ccs_cache_collection_find_ccache_by_name() local
231 if (!in_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_by_name()
232 if (!in_name ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_by_name()
233 if (!out_ccache ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_by_name()
235 if (!err) { in ccs_cache_collection_find_ccache_by_name()
236 err = ccs_ccache_list_new_iterator (in_cache_collection->ccaches, in ccs_cache_collection_find_ccache_by_name()
241 while (!err) { in ccs_cache_collection_find_ccache_by_name()
244 err = ccs_ccache_list_iterator_next (iterator, &ccache); in ccs_cache_collection_find_ccache_by_name()
246 if (!err) { in ccs_cache_collection_find_ccache_by_name()
249 err = ccs_ccache_compare_name (ccache, in_name, &equal); in ccs_cache_collection_find_ccache_by_name()
251 if (!err && equal) { in ccs_cache_collection_find_ccache_by_name()
257 if (err == ccIteratorEnd) { err = ccErrCCacheNotFound; } in ccs_cache_collection_find_ccache_by_name()
261 return cci_check_error (err); in ccs_cache_collection_find_ccache_by_name()
274 cc_int32 err = ccNoError; in ccs_cache_collection_find_ccache() local
276 if (!in_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache()
277 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache()
278 if (!out_ccache ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache()
280 if (!err) { in ccs_cache_collection_find_ccache()
281 err = ccs_ccache_list_find (in_cache_collection->ccaches, in ccs_cache_collection_find_ccache()
285 return cci_check_error (err); in ccs_cache_collection_find_ccache()
294 cc_int32 err = ccNoError; in ccs_ccache_collection_move_ccache() local
297 if (!io_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_ccache_collection_move_ccache()
298 if (!in_source_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_ccache_collection_move_ccache()
299 if (!io_destination_ccache) { err = cci_check_error (ccErrBadParam); } in ccs_ccache_collection_move_ccache()
301 if (!err) { in ccs_ccache_collection_move_ccache()
302 err = ccs_cache_collection_find_ccache (io_cache_collection, in ccs_ccache_collection_move_ccache()
307 if (!err) { in ccs_ccache_collection_move_ccache()
308 err = ccs_ccache_swap_contents (source_ccache, in ccs_ccache_collection_move_ccache()
313 if (!err) { in ccs_ccache_collection_move_ccache()
314 err = ccs_cache_collection_destroy_ccache (io_cache_collection, in ccs_ccache_collection_move_ccache()
318 return cci_check_error (err); in ccs_ccache_collection_move_ccache()
326 cc_int32 err = ccNoError; in ccs_cache_collection_destroy_ccache() local
329 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_destroy_ccache()
330 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_destroy_ccache()
332 if (!err) { in ccs_cache_collection_destroy_ccache()
333 err = ccs_cache_collection_find_ccache (io_cache_collection, in ccs_cache_collection_destroy_ccache()
338 if (!err) { in ccs_cache_collection_destroy_ccache()
341 err = ccs_ccache_changed (ccache, io_cache_collection); in ccs_cache_collection_destroy_ccache()
344 if (!err) { in ccs_cache_collection_destroy_ccache()
345 err = ccs_ccache_list_remove (io_cache_collection->ccaches, in ccs_cache_collection_destroy_ccache()
349 return cci_check_error (err); in ccs_cache_collection_destroy_ccache()
362 cc_int32 err = ccNoError; in ccs_cache_collection_find_ccache_iterator() local
364 if (!in_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_iterator()
365 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_iterator()
366 if (!out_ccache_iterator) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_ccache_iterator()
368 if (!err) { in ccs_cache_collection_find_ccache_iterator()
369 err = ccs_ccache_list_find_iterator (in_cache_collection->ccaches, in ccs_cache_collection_find_ccache_iterator()
374 return cci_check_error (err); in ccs_cache_collection_find_ccache_iterator()
388 cc_int32 err = ccNoError; in ccs_cache_collection_find_credentials_iterator() local
391 if (!in_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_credentials_iterator()
392 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_credentials_iterator()
393 if (!out_credentials_iterator) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_find_credentials_iterator()
395 if (!err) { in ccs_cache_collection_find_credentials_iterator()
396 err = ccs_ccache_list_new_iterator (in_cache_collection->ccaches, in ccs_cache_collection_find_credentials_iterator()
401 while (!err) { in ccs_cache_collection_find_credentials_iterator()
404 err = ccs_ccache_list_iterator_next (iterator, &ccache); in ccs_cache_collection_find_credentials_iterator()
406 if (!err) { in ccs_cache_collection_find_credentials_iterator()
416 if (err == ccIteratorEnd) { err = cci_check_error (ccErrInvalidCredentialsIterator); } in ccs_cache_collection_find_credentials_iterator()
420 return cci_check_error (err); in ccs_cache_collection_find_credentials_iterator()
432 cc_int32 err = ccNoError; in ccs_cache_collection_get_next_unique_ccache_name() local
436 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_next_unique_ccache_name()
437 if (!out_name ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_next_unique_ccache_name()
439 if (!err) { in ccs_cache_collection_get_next_unique_ccache_name()
440 err = ccs_cache_collection_list_count (io_cache_collection->ccaches, &count); in ccs_cache_collection_get_next_unique_ccache_name()
443 if (!err) { in ccs_cache_collection_get_next_unique_ccache_name()
445 while (!err) { in ccs_cache_collection_get_next_unique_ccache_name()
447 if (ret < 0 || !name) { err = cci_check_error (ccErrNoMem); } in ccs_cache_collection_get_next_unique_ccache_name()
449 if (!err) { in ccs_cache_collection_get_next_unique_ccache_name()
451 err = ccs_cache_collection_find_ccache_by_name (io_cache_collection, in ccs_cache_collection_get_next_unique_ccache_name()
455 if (err == ccErrCCacheNotFound) { in ccs_cache_collection_get_next_unique_ccache_name()
456 err = ccNoError; in ccs_cache_collection_get_next_unique_ccache_name()
462 if (!name) { err = cci_check_error (ccErrNoMem); } in ccs_cache_collection_get_next_unique_ccache_name()
466 if (!err) { in ccs_cache_collection_get_next_unique_ccache_name()
473 return cci_check_error (err); in ccs_cache_collection_get_next_unique_ccache_name()
481 cc_int32 err = ccNoError; in ccs_cache_collection_get_default_ccache() local
484 if (!in_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_default_ccache()
485 if (!out_ccache ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_default_ccache()
487 if (!err) { in ccs_cache_collection_get_default_ccache()
488 err = ccs_ccache_list_count (in_cache_collection->ccaches, &count); in ccs_cache_collection_get_default_ccache()
491 if (!err) { in ccs_cache_collection_get_default_ccache()
496 err = ccs_ccache_list_new_iterator (in_cache_collection->ccaches, in ccs_cache_collection_get_default_ccache()
500 if (!err) { in ccs_cache_collection_get_default_ccache()
501 err = ccs_ccache_list_iterator_next (iterator, out_ccache); in ccs_cache_collection_get_default_ccache()
507 err = cci_check_error (ccErrCCacheNotFound); in ccs_cache_collection_get_default_ccache()
511 return cci_check_error (err); in ccs_cache_collection_get_default_ccache()
519 cc_int32 err = ccNoError; in ccs_cache_collection_set_default_ccache() local
524 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_set_default_ccache()
525 if (!in_identifier ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_set_default_ccache()
527 if (!err) { in ccs_cache_collection_set_default_ccache()
528 err = ccs_cache_collection_get_default_ccache (io_cache_collection, in ccs_cache_collection_set_default_ccache()
532 if (!err) { in ccs_cache_collection_set_default_ccache()
533 err = ccs_ccache_compare_identifier (old_default, in_identifier, &equal); in ccs_cache_collection_set_default_ccache()
537 if (!err && !equal) { in ccs_cache_collection_set_default_ccache()
538 err = ccs_ccache_list_push_front (io_cache_collection->ccaches, in ccs_cache_collection_set_default_ccache()
541 if (!err) { in ccs_cache_collection_set_default_ccache()
542 err = ccs_ccache_notify_default_state_changed (old_default, in ccs_cache_collection_set_default_ccache()
547 if (!err) { in ccs_cache_collection_set_default_ccache()
548 err = ccs_cache_collection_get_default_ccache (io_cache_collection, in ccs_cache_collection_set_default_ccache()
552 if (!err) { in ccs_cache_collection_set_default_ccache()
553 err = ccs_ccache_notify_default_state_changed (new_default, in ccs_cache_collection_set_default_ccache()
558 if (!err) { in ccs_cache_collection_set_default_ccache()
559 err = ccs_cache_collection_changed (io_cache_collection); in ccs_cache_collection_set_default_ccache()
563 return cci_check_error (err); in ccs_cache_collection_set_default_ccache()
577 cc_int32 err = ccNoError; in ccs_cache_collection_sync() local
579 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_sync()
580 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_sync()
581 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_sync()
583 if (!err) { in ccs_cache_collection_sync()
584 err = cci_identifier_write (io_cache_collection->identifier, io_reply_data); in ccs_cache_collection_sync()
587 return cci_check_error (err); in ccs_cache_collection_sync()
596 cc_int32 err = ccNoError; in ccs_cache_collection_get_change_time() local
598 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_change_time()
599 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_change_time()
600 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_change_time()
602 if (!err) { in ccs_cache_collection_get_change_time()
603 err = krb5int_ipc_stream_write_time (io_reply_data, io_cache_collection->last_changed_time); in ccs_cache_collection_get_change_time()
606 return cci_check_error (err); in ccs_cache_collection_get_change_time()
618 cc_int32 err = ccNoError; in ccs_cache_collection_wait_for_change() local
622 if (!ccs_pipe_valid (in_client_pipe)) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_wait_for_change()
623 if (!ccs_pipe_valid (in_reply_pipe )) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_wait_for_change()
624 if (!io_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_wait_for_change()
625 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_wait_for_change()
626 if (!out_will_block ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_wait_for_change()
628 if (!err) { in ccs_cache_collection_wait_for_change()
629 err = krb5int_ipc_stream_read_time (in_request_data, &last_wait_for_change_time); in ccs_cache_collection_wait_for_change()
632 if (!err) { in ccs_cache_collection_wait_for_change()
634 err = krb5int_ipc_stream_write_time (io_reply_data, io_cache_collection->last_changed_time); in ccs_cache_collection_wait_for_change()
639 err = ccs_callback_new (&callback, in ccs_cache_collection_wait_for_change()
646 if (!err) { in ccs_cache_collection_wait_for_change()
647 err = ccs_callback_array_insert (io_cache_collection->change_callbacks, callback, in ccs_cache_collection_wait_for_change()
649 if (!err) { callback = NULL; /* take ownership */ } in ccs_cache_collection_wait_for_change()
658 if (!err) { in ccs_cache_collection_wait_for_change()
662 return cci_check_error (err); in ccs_cache_collection_wait_for_change()
671 cc_int32 err = ccNoError; in ccs_cache_collection_get_default_ccache_name() local
674 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_default_ccache_name()
675 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_default_ccache_name()
676 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_get_default_ccache_name()
678 if (!err) { in ccs_cache_collection_get_default_ccache_name()
679 err = ccs_cache_collection_list_count (io_cache_collection->ccaches, &count); in ccs_cache_collection_get_default_ccache_name()
682 if (!err) { in ccs_cache_collection_get_default_ccache_name()
686 err = ccs_cache_collection_get_default_ccache (io_cache_collection, &ccache); in ccs_cache_collection_get_default_ccache_name()
688 if (!err) { in ccs_cache_collection_get_default_ccache_name()
689 err = ccs_ccache_write_name (ccache, io_reply_data); in ccs_cache_collection_get_default_ccache_name()
692 err = krb5int_ipc_stream_write_string (io_reply_data, in ccs_cache_collection_get_default_ccache_name()
697 return cci_check_error (err); in ccs_cache_collection_get_default_ccache_name()
706 cc_int32 err = ccNoError; in ccs_cache_collection_open_ccache() local
710 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_ccache()
711 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_ccache()
712 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_ccache()
714 if (!err) { in ccs_cache_collection_open_ccache()
715 err = krb5int_ipc_stream_read_string (in_request_data, &name); in ccs_cache_collection_open_ccache()
718 if (!err) { in ccs_cache_collection_open_ccache()
719 err = ccs_cache_collection_find_ccache_by_name (io_cache_collection, in ccs_cache_collection_open_ccache()
723 if (!err) { in ccs_cache_collection_open_ccache()
724 err = ccs_ccache_write (ccache, io_reply_data); in ccs_cache_collection_open_ccache()
729 return cci_check_error (err); in ccs_cache_collection_open_ccache()
738 cc_int32 err = ccNoError; in ccs_cache_collection_open_default_ccache() local
741 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_default_ccache()
742 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_default_ccache()
743 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_open_default_ccache()
745 if (!err) { in ccs_cache_collection_open_default_ccache()
746 err = ccs_cache_collection_get_default_ccache (io_cache_collection, in ccs_cache_collection_open_default_ccache()
750 if (!err) { in ccs_cache_collection_open_default_ccache()
751 err = ccs_ccache_write (ccache, io_reply_data); in ccs_cache_collection_open_default_ccache()
754 return cci_check_error (err); in ccs_cache_collection_open_default_ccache()
763 cc_int32 err = ccNoError; in ccs_cache_collection_create_ccache() local
769 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_ccache()
770 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_ccache()
771 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_ccache()
773 if (!err) { in ccs_cache_collection_create_ccache()
774 err = krb5int_ipc_stream_read_string (in_request_data, &name); in ccs_cache_collection_create_ccache()
777 if (!err) { in ccs_cache_collection_create_ccache()
778 err = krb5int_ipc_stream_read_uint32 (in_request_data, &cred_vers); in ccs_cache_collection_create_ccache()
781 if (!err) { in ccs_cache_collection_create_ccache()
782 err = krb5int_ipc_stream_read_string (in_request_data, &principal); in ccs_cache_collection_create_ccache()
785 if (!err) { in ccs_cache_collection_create_ccache()
791 err = ccs_ccache_reset (ccache, io_cache_collection, cred_vers, principal); in ccs_cache_collection_create_ccache()
794 err = ccs_ccache_new (&ccache, cred_vers, name, principal, in ccs_cache_collection_create_ccache()
799 if (!err) { in ccs_cache_collection_create_ccache()
800 err = ccs_ccache_write (ccache, io_reply_data); in ccs_cache_collection_create_ccache()
803 if (!err) { in ccs_cache_collection_create_ccache()
804 err = ccs_cache_collection_changed (io_cache_collection); in ccs_cache_collection_create_ccache()
810 return cci_check_error (err); in ccs_cache_collection_create_ccache()
819 cc_int32 err = ccNoError; in ccs_cache_collection_create_default_ccache() local
824 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_default_ccache()
825 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_default_ccache()
826 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_default_ccache()
828 if (!err) { in ccs_cache_collection_create_default_ccache()
829 err = krb5int_ipc_stream_read_uint32 (in_request_data, &cred_vers); in ccs_cache_collection_create_default_ccache()
832 if (!err) { in ccs_cache_collection_create_default_ccache()
833 err = krb5int_ipc_stream_read_string (in_request_data, &principal); in ccs_cache_collection_create_default_ccache()
836 if (!err) { in ccs_cache_collection_create_default_ccache()
837 err = ccs_cache_collection_get_default_ccache (io_cache_collection, in ccs_cache_collection_create_default_ccache()
840 if (!err) { in ccs_cache_collection_create_default_ccache()
841 err = ccs_ccache_reset (ccache, io_cache_collection, cred_vers, principal); in ccs_cache_collection_create_default_ccache()
843 } else if (err == ccErrCCacheNotFound) { in ccs_cache_collection_create_default_ccache()
846 err = ccs_cache_collection_get_next_unique_ccache_name (io_cache_collection, in ccs_cache_collection_create_default_ccache()
849 if (!err) { in ccs_cache_collection_create_default_ccache()
850 err = ccs_ccache_new (&ccache, cred_vers, name, principal, in ccs_cache_collection_create_default_ccache()
858 if (!err) { in ccs_cache_collection_create_default_ccache()
859 err = ccs_ccache_write (ccache, io_reply_data); in ccs_cache_collection_create_default_ccache()
862 if (!err) { in ccs_cache_collection_create_default_ccache()
863 err = ccs_cache_collection_changed (io_cache_collection); in ccs_cache_collection_create_default_ccache()
868 return cci_check_error (err); in ccs_cache_collection_create_default_ccache()
877 cc_int32 err = ccNoError; in ccs_cache_collection_create_new_ccache() local
883 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_new_ccache()
884 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_new_ccache()
885 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_create_new_ccache()
887 if (!err) { in ccs_cache_collection_create_new_ccache()
888 err = krb5int_ipc_stream_read_uint32 (in_request_data, &cred_vers); in ccs_cache_collection_create_new_ccache()
891 if (!err) { in ccs_cache_collection_create_new_ccache()
892 err = krb5int_ipc_stream_read_string (in_request_data, &principal); in ccs_cache_collection_create_new_ccache()
895 if (!err) { in ccs_cache_collection_create_new_ccache()
896 err = ccs_cache_collection_get_next_unique_ccache_name (io_cache_collection, in ccs_cache_collection_create_new_ccache()
900 if (!err) { in ccs_cache_collection_create_new_ccache()
901 err = ccs_ccache_new (&ccache, cred_vers, name, principal, in ccs_cache_collection_create_new_ccache()
905 if (!err) { in ccs_cache_collection_create_new_ccache()
906 err = ccs_ccache_write (ccache, io_reply_data); in ccs_cache_collection_create_new_ccache()
909 if (!err) { in ccs_cache_collection_create_new_ccache()
910 err = ccs_cache_collection_changed (io_cache_collection); in ccs_cache_collection_create_new_ccache()
916 return cci_check_error (err); in ccs_cache_collection_create_new_ccache()
926 cc_int32 err = ccNoError; in ccs_cache_collection_new_ccache_iterator() local
929 if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_new_ccache_iterator()
930 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_new_ccache_iterator()
931 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_new_ccache_iterator()
933 if (!err) { in ccs_cache_collection_new_ccache_iterator()
934 err = ccs_ccache_list_new_iterator (io_cache_collection->ccaches, in ccs_cache_collection_new_ccache_iterator()
939 if (!err) { in ccs_cache_collection_new_ccache_iterator()
940 err = ccs_ccache_list_iterator_write (ccache_iterator, io_reply_data); in ccs_cache_collection_new_ccache_iterator()
943 return cci_check_error (err); in ccs_cache_collection_new_ccache_iterator()
955 cc_int32 err = ccNoError; in ccs_cache_collection_lock() local
959 if (!ccs_pipe_valid (in_client_pipe)) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_lock()
960 if (!io_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_lock()
961 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_lock()
962 if (!out_will_block ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_lock()
963 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_lock()
965 if (!err) { in ccs_cache_collection_lock()
966 err = krb5int_ipc_stream_read_uint32 (in_request_data, &lock_type); in ccs_cache_collection_lock()
969 if (!err) { in ccs_cache_collection_lock()
970 err = krb5int_ipc_stream_read_uint32 (in_request_data, &block); in ccs_cache_collection_lock()
973 if (!err) { in ccs_cache_collection_lock()
974 err = ccs_lock_state_add (io_cache_collection->lock_state, in ccs_cache_collection_lock()
979 return cci_check_error (err); in ccs_cache_collection_lock()
989 cc_int32 err = ccNoError; in ccs_cache_collection_unlock() local
991 if (!ccs_pipe_valid (in_client_pipe)) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_unlock()
992 if (!io_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_unlock()
993 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_unlock()
994 if (!io_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_unlock()
996 if (!err) { in ccs_cache_collection_unlock()
997 err = ccs_lock_state_remove (io_cache_collection->lock_state, in ccs_cache_collection_unlock()
1001 return cci_check_error (err); in ccs_cache_collection_unlock()
1018 cc_int32 err = ccNoError; in ccs_cache_collection_handle_message() local
1022 if (!ccs_pipe_valid (in_client_pipe)) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1023 if (!ccs_pipe_valid (in_reply_pipe) ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1024 if (!io_cache_collection ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1025 if (!in_request_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1026 if (!out_will_block ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1027 if (!out_reply_data ) { err = cci_check_error (ccErrBadParam); } in ccs_cache_collection_handle_message()
1029 if (!err) { in ccs_cache_collection_handle_message()
1030 err = krb5int_ipc_stream_new (&reply_data); in ccs_cache_collection_handle_message()
1033 if (!err) { in ccs_cache_collection_handle_message()
1038 err = ccs_cache_collection_sync (io_cache_collection, in ccs_cache_collection_handle_message()
1042 err = ccs_cache_collection_get_change_time (io_cache_collection, in ccs_cache_collection_handle_message()
1046 err = ccs_cache_collection_wait_for_change (in_client_pipe, in_reply_pipe, in ccs_cache_collection_handle_message()
1052 err = ccs_cache_collection_get_default_ccache_name (io_cache_collection, in ccs_cache_collection_handle_message()
1056 err = ccs_cache_collection_open_ccache (io_cache_collection, in ccs_cache_collection_handle_message()
1060 err = ccs_cache_collection_open_default_ccache (io_cache_collection, in ccs_cache_collection_handle_message()
1064 err = ccs_cache_collection_create_ccache (io_cache_collection, in ccs_cache_collection_handle_message()
1068 err = ccs_cache_collection_create_default_ccache (io_cache_collection, in ccs_cache_collection_handle_message()
1072 err = ccs_cache_collection_create_new_ccache (io_cache_collection, in ccs_cache_collection_handle_message()
1076 err = ccs_cache_collection_new_ccache_iterator (io_cache_collection, in ccs_cache_collection_handle_message()
1082 err = ccs_cache_collection_lock (in_client_pipe, in_reply_pipe, in ccs_cache_collection_handle_message()
1088 err = ccs_cache_collection_unlock (in_client_pipe, io_cache_collection, in ccs_cache_collection_handle_message()
1092 err = ccErrBadInternalMessage; in ccs_cache_collection_handle_message()
1096 if (!err) { in ccs_cache_collection_handle_message()
1108 return cci_check_error (err); in ccs_cache_collection_handle_message()