Path: blob/main/crypto/krb5/src/ccapi/lib/ccapi_context.h
39536 views
/* ccapi/lib/ccapi_context.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_CONTEXT_H26#define CCAPI_CONTEXT_H2728#include "cci_common.h"2930/* Used for freeing ccapi context in thread fini calls31* Does not tell the server you are exiting. */32cc_int32 cci_context_destroy (cc_context_t in_context);3334cc_int32 ccapi_context_release (cc_context_t in_context);3536cc_int32 ccapi_context_get_change_time (cc_context_t in_context,37cc_time_t *out_time);3839cc_int32 ccapi_context_wait_for_change (cc_context_t in_context);4041cc_int32 ccapi_context_get_default_ccache_name (cc_context_t in_context,42cc_string_t *out_name);4344cc_int32 ccapi_context_open_ccache (cc_context_t in_context,45const char *in_name,46cc_ccache_t *out_ccache);4748cc_int32 ccapi_context_open_default_ccache (cc_context_t in_context,49cc_ccache_t *out_ccache);5051cc_int32 ccapi_context_create_ccache (cc_context_t in_context,52const char *in_name,53cc_uint32 in_cred_vers,54const char *in_principal,55cc_ccache_t *out_ccache);5657cc_int32 ccapi_context_create_default_ccache (cc_context_t in_context,58cc_uint32 in_cred_vers,59const char *in_principal,60cc_ccache_t *out_ccache);6162cc_int32 ccapi_context_create_new_ccache (cc_context_t in_context,63cc_uint32 in_cred_vers,64const char *in_principal,65cc_ccache_t *out_ccache);6667cc_int32 ccapi_context_new_ccache_iterator (cc_context_t in_context,68cc_ccache_iterator_t *out_iterator);6970cc_int32 ccapi_context_lock (cc_context_t in_context,71cc_uint32 in_lock_type,72cc_uint32 in_block);7374cc_int32 ccapi_context_unlock (cc_context_t in_context);7576cc_int32 ccapi_context_compare (cc_context_t in_context,77cc_context_t in_compare_to_context,78cc_uint32 *out_equal);7980#ifdef WIN3281void cci_thread_init__auxinit(void);82#endif838485#endif /* CCAPI_CONTEXT_H */868788