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