#define CC_CCACHE_MAGIC ('C'<<24 | 'C'<<16 | 'A'<<8 | 'C')
struct cc_int_ccache_d {
cc_ccache_f* functions;
#if TARGET_OS_MAC
const cc_ccache_f* otherFunctions;
#endif
cc_uint32 magic;
cc_handle handle;
cc_handle ctx;
};
typedef struct cc_int_ccache_d cc_int_ccache_d;
typedef cc_int_ccache_d* cc_int_ccache_t;
cc_int32
cc_int_ccache_new( cc_ccache_t * pccache, cc_handle hctx, cc_handle hccache );
cc_int32
cc_int_ccache_release( cc_ccache_t ccache );
cc_int32
cc_int_ccache_destroy( cc_ccache_t ccache );
cc_int32
cc_int_ccache_set_default( cc_ccache_t ccache );
cc_int32
cc_int_ccache_get_credentials_version( cc_ccache_t ccache,
cc_uint32* credentials_version);
cc_int32
cc_int_ccache_get_name( cc_ccache_t ccache,
cc_string_t* name );
cc_int32
cc_int_ccache_get_principal( cc_ccache_t ccache,
cc_uint32 credentials_version,
cc_string_t* principal );
cc_int32
cc_int_ccache_set_principal( cc_ccache_t ccache,
cc_uint32 credentials_version,
const char* principal );
cc_int32
cc_int_ccache_store_credentials( cc_ccache_t ccache,
const cc_credentials_union* credentials );
cc_int32
cc_int_ccache_remove_credentials( cc_ccache_t ccache,
cc_credentials_t credentials );
cc_int32
cc_int_ccache_new_credentials_iterator( cc_ccache_t ccache,
cc_credentials_iterator_t* iterator );
cc_int32
cc_int_ccache_move( cc_ccache_t source,
cc_ccache_t destination );
cc_int32
cc_int_ccache_lock( cc_ccache_t ccache,
cc_uint32 block,
cc_uint32 lock_type );
cc_int32
cc_int_ccache_unlock( cc_ccache_t ccache );
cc_int32
cc_int_ccache_get_last_default_time( cc_ccache_t ccache,
cc_time_t* time );
cc_int32
cc_int_ccache_get_change_time( cc_ccache_t ccache,
cc_time_t* time );
cc_int32
cc_int_ccache_compare( cc_ccache_t ccache,
cc_ccache_t compare_to,
cc_uint32* equal );
cc_int32
cc_int_ccache_get_kdc_time_offset( cc_ccache_t ccache,
cc_int32 credentials_version,
cc_time_t* time_offset );
cc_int32
cc_int_ccache_set_kdc_time_offset( cc_ccache_t ccache,
cc_int32 credentials_version,
cc_time_t time_offset );
cc_int32
cc_int_ccache_clear_kdc_time_offset( cc_ccache_t ccache,
cc_int32 credentials_version );
cc_int32
cc_int_ccache_compat_clone( cc_int_ccache_t ccache,
cc_int_ccache_t *clone );