1 /* ccapi/common/cci_types.h */ 2 /* 3 * Copyright 2006 Massachusetts Institute of Technology. 4 * All Rights Reserved. 5 * 6 * Export of this software from the United States of America may 7 * require a specific license from the United States Government. 8 * It is the responsibility of any person or organization contemplating 9 * export to obtain such a license before exporting. 10 * 11 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 12 * distribute this software and its documentation for any purpose and 13 * without fee is hereby granted, provided that the above copyright 14 * notice appear in all copies and that both that copyright notice and 15 * this permission notice appear in supporting documentation, and that 16 * the name of M.I.T. not be used in advertising or publicity pertaining 17 * to distribution of the software without specific, written prior 18 * permission. Furthermore if you modify this software you must label 19 * your software as modified software and not distribute it in such a 20 * fashion that it might be confused with the original M.I.T. software. 21 * M.I.T. makes no representations about the suitability of 22 * this software for any purpose. It is provided "as is" without express 23 * or implied warranty. 24 */ 25 26 #ifndef CCI_TYPES_H 27 #define CCI_TYPES_H 28 29 #include <CredentialsCache.h> 30 #include <k5-ipc_stream.h> 31 32 typedef char *cci_uuid_string_t; 33 34 struct cci_identifier_d; 35 typedef struct cci_identifier_d *cci_identifier_t; 36 37 enum cci_msg_id_t { 38 /* cc_context_t */ 39 cci_context_first_msg_id, 40 41 cci_context_unused_release_msg_id, /* Unused. Handle for old clients. */ 42 cci_context_sync_msg_id, 43 cci_context_get_change_time_msg_id, 44 cci_context_wait_for_change_msg_id, 45 cci_context_get_default_ccache_name_msg_id, 46 cci_context_open_ccache_msg_id, 47 cci_context_open_default_ccache_msg_id, 48 cci_context_create_ccache_msg_id, 49 cci_context_create_default_ccache_msg_id, 50 cci_context_create_new_ccache_msg_id, 51 cci_context_new_ccache_iterator_msg_id, 52 cci_context_lock_msg_id, 53 cci_context_unlock_msg_id, 54 55 cci_context_last_msg_id, 56 57 /* cc_ccache_t */ 58 cci_ccache_first_msg_id, 59 60 cci_ccache_destroy_msg_id, 61 cci_ccache_set_default_msg_id, 62 cci_ccache_get_credentials_version_msg_id, 63 cci_ccache_get_name_msg_id, 64 cci_ccache_get_principal_msg_id, 65 cci_ccache_set_principal_msg_id, 66 cci_ccache_store_credentials_msg_id, 67 cci_ccache_remove_credentials_msg_id, 68 cci_ccache_new_credentials_iterator_msg_id, 69 cci_ccache_move_msg_id, 70 cci_ccache_lock_msg_id, 71 cci_ccache_unlock_msg_id, 72 cci_ccache_get_last_default_time_msg_id, 73 cci_ccache_get_change_time_msg_id, 74 cci_ccache_wait_for_change_msg_id, 75 cci_ccache_get_kdc_time_offset_msg_id, 76 cci_ccache_set_kdc_time_offset_msg_id, 77 cci_ccache_clear_kdc_time_offset_msg_id, 78 79 cci_ccache_last_msg_id, 80 81 /* cc_ccache_iterator_t */ 82 cci_ccache_iterator_first_msg_id, 83 84 cci_ccache_iterator_release_msg_id, 85 cci_ccache_iterator_next_msg_id, 86 cci_ccache_iterator_clone_msg_id, 87 88 cci_ccache_iterator_last_msg_id, 89 90 /* cc_credentials_iterator_t */ 91 cci_credentials_iterator_first_msg_id, 92 93 cci_credentials_iterator_release_msg_id, 94 cci_credentials_iterator_next_msg_id, 95 cci_credentials_iterator_clone_msg_id, 96 97 cci_credentials_iterator_last_msg_id, 98 99 cci_max_msg_id /* must be last! */ 100 }; 101 102 #endif /* CCI_TYPES_H */ 103