1 #ifndef _TEST_CCAPI_V2_H_ 2 #define _TEST_CCAPI_V2_H_ 3 4 #include "test_ccapi_globals.h" 5 #ifdef TARGET_OS_MAC 6 #include <Kerberos/CredentialsCache2.h> 7 #else 8 #include <CredentialsCache2.h> 9 #endif 10 11 12 int check_cc_shutdown(void); 13 cc_result check_once_cc_shutdown(apiCB **out_context, cc_result expected_err, const char *description); 14 15 int check_cc_get_change_time(void); 16 cc_int32 check_once_cc_get_change_time(apiCB *context, cc_time_t *time, cc_result expected_err, const char *description); 17 18 int check_cc_open(void); 19 cc_result check_once_cc_open(apiCB *context, const char *name, cc_int32 version, ccache_p **ccache, cc_result expected_err, const char *description); 20 21 int check_cc_create(void); 22 cc_result check_once_cc_create(apiCB *context, const char *name, cc_int32 cred_vers, const char *principal, ccache_p **ccache, cc_int32 expected_err, const char *description); 23 24 int check_cc_close(void); 25 cc_result check_once_cc_close(apiCB *context, ccache_p *ccache, cc_result expected_err, const char *description); 26 27 int check_cc_destroy(void); 28 cc_result check_once_cc_destroy(apiCB *context, ccache_p *ccache, cc_int32 expected_err, const char *description); 29 30 int check_cc_get_cred_version(void); 31 cc_result check_once_cc_get_cred_version(apiCB *context, ccache_p *ccache, cc_int32 expected_cred_vers, cc_int32 expected_err, const char *description); 32 33 int check_cc_get_name(void); 34 cc_int32 check_once_cc_get_name(apiCB *context, ccache_p *ccache, const char *expected_name, cc_int32 expected_err, const char *description); 35 36 int check_cc_get_principal(void); 37 cc_result check_once_cc_get_principal(apiCB *context, 38 ccache_p *ccache, 39 const char *expected_principal, 40 cc_int32 expected_err, 41 const char *description); 42 43 int check_cc_set_principal(void); 44 cc_int32 check_once_cc_set_principal(apiCB *context, ccache_p *ccache, cc_int32 cred_vers, const char *in_principal, cc_int32 expected_err, const char *description); 45 46 int check_cc_store(void); 47 cc_result check_once_cc_store(apiCB *context, ccache_p *ccache, const cred_union in_creds, cc_int32 expected_err, const char *description); 48 49 int check_cc_remove_cred(void); 50 cc_result check_once_cc_remove_cred(apiCB *context, ccache_p *ccache, cred_union in_creds, cc_int32 expected_err, const char *description); 51 52 int check_cc_seq_fetch_NCs_begin(void); 53 cc_result check_once_cc_seq_fetch_NCs_begin(apiCB *context, ccache_cit **iterator, cc_result expected_err, const char *description); 54 55 int check_cc_seq_fetch_NCs_next(void); 56 cc_result check_once_cc_seq_fetch_NCs_next(apiCB *context, ccache_cit *iterator, cc_uint32 expected_count, cc_result expected_err, const char *description); 57 58 int check_cc_get_NC_info(void); 59 cc_result check_once_cc_get_NC_info(apiCB *context, 60 const char *expected_name, 61 const char *expected_principal, 62 cc_int32 expected_version, 63 cc_uint32 expected_count, 64 cc_result expected_err, 65 const char *description); 66 67 int check_cc_seq_fetch_creds_begin(void); 68 cc_result check_once_cc_seq_fetch_creds_begin(apiCB *context, ccache_p *ccache, ccache_cit **iterator, cc_result expected_err, const char *description); 69 70 int check_cc_seq_fetch_creds_next(void); 71 cc_result check_once_cc_seq_fetch_creds_next(apiCB *context, ccache_cit *iterator, cc_uint32 expected_count, cc_result expected_err, const char *description); 72 73 #endif /* _TEST_CCAPI_V2_H_ */ 74