Path: blob/main/crypto/krb5/src/ccapi/lib/ccapi_ccache.h
39536 views
/* ccapi/lib/ccapi_ccache.h */1/*2* Copyright 2006 Massachusetts Institute of Technology.3* All Rights Reserved.4*5* Export of this software from the United States of America may6* require a specific license from the United States Government.7* It is the responsibility of any person or organization contemplating8* export to obtain such a license before exporting.9*10* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and11* distribute this software and its documentation for any purpose and12* without fee is hereby granted, provided that the above copyright13* notice appear in all copies and that both that copyright notice and14* this permission notice appear in supporting documentation, and that15* the name of M.I.T. not be used in advertising or publicity pertaining16* to distribution of the software without specific, written prior17* permission. Furthermore if you modify this software you must label18* your software as modified software and not distribute it in such a19* fashion that it might be confused with the original M.I.T. software.20* M.I.T. makes no representations about the suitability of21* this software for any purpose. It is provided "as is" without express22* or implied warranty.23*/2425#ifndef CCAPI_CCACHE_H26#define CCAPI_CCACHE_H2728#include "cci_common.h"2930cc_int32 cci_ccache_new (cc_ccache_t *out_ccache,31cci_identifier_t in_identifier);3233cc_int32 ccapi_ccache_release (cc_ccache_t io_ccache);3435cc_int32 cci_ccache_write (cc_ccache_t in_ccache,36k5_ipc_stream in_stream);3738cc_int32 ccapi_ccache_destroy (cc_ccache_t io_ccache);3940cc_int32 ccapi_ccache_set_default (cc_ccache_t io_ccache);4142cc_int32 ccapi_ccache_get_credentials_version (cc_ccache_t in_ccache,43cc_uint32 *out_credentials_version);4445cc_int32 ccapi_ccache_get_name (cc_ccache_t in_ccache,46cc_string_t *out_name);4748cc_int32 ccapi_ccache_get_principal (cc_ccache_t in_ccache,49cc_uint32 in_credentials_version,50cc_string_t *out_principal);5152cc_int32 ccapi_ccache_set_principal (cc_ccache_t io_ccache,53cc_uint32 in_credentials_version,54const char *in_principal);5556cc_int32 ccapi_ccache_store_credentials (cc_ccache_t io_ccache,57const cc_credentials_union *in_credentials_union);5859cc_int32 ccapi_ccache_remove_credentials (cc_ccache_t io_ccache,60cc_credentials_t in_credentials);6162cc_int32 ccapi_ccache_new_credentials_iterator (cc_ccache_t in_ccache,63cc_credentials_iterator_t *out_credentials_iterator);6465cc_int32 ccapi_ccache_move (cc_ccache_t io_source_ccache,66cc_ccache_t io_destination_ccache);6768cc_int32 ccapi_ccache_lock (cc_ccache_t io_ccache,69cc_uint32 in_lock_type,70cc_uint32 in_block);7172cc_int32 ccapi_ccache_unlock (cc_ccache_t io_ccache);7374cc_int32 ccapi_ccache_get_last_default_time (cc_ccache_t in_ccache,75cc_time_t *out_last_default_time);7677cc_int32 ccapi_ccache_get_change_time (cc_ccache_t in_ccache,78cc_time_t *out_change_time);7980cc_int32 ccapi_ccache_wait_for_change (cc_ccache_t in_ccache);8182cc_int32 ccapi_ccache_compare (cc_ccache_t in_ccache,83cc_ccache_t in_compare_to_ccache,84cc_uint32 *out_equal);8586cc_int32 ccapi_ccache_get_kdc_time_offset (cc_ccache_t in_ccache,87cc_uint32 in_credentials_version,88cc_time_t *out_time_offset);8990cc_int32 ccapi_ccache_set_kdc_time_offset (cc_ccache_t io_ccache,91cc_uint32 in_credentials_version,92cc_time_t in_time_offset);9394cc_int32 ccapi_ccache_clear_kdc_time_offset (cc_ccache_t io_ccache,95cc_uint32 in_credentials_version);9697cc_int32 cci_ccache_get_compat_version (cc_ccache_t in_ccache,98cc_uint32 *out_compat_version);99100cc_int32 cci_ccache_set_compat_version (cc_ccache_t io_ccache,101cc_uint32 in_compat_version);102103104#endif /* CCAPI_CCACHE_H */105106107