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 "mit-CredentialsCache2.h"
7#else
8#include <CredentialsCache2.h>
9#endif
10
11
12int check_cc_shutdown(void);
13cc_result check_once_cc_shutdown(apiCB **out_context, cc_result expected_err, const char *description);
14
15int check_cc_get_change_time(void);
16cc_int32 check_once_cc_get_change_time(apiCB *context, cc_time_t *time, cc_result expected_err, const char *description);
17
18int check_cc_open(void);
19cc_result check_once_cc_open(apiCB *context, const char *name, cc_int32 version, ccache_p **ccache, cc_result expected_err, const char *description);
20
21int check_cc_create(void);
22cc_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
24int check_cc_close(void);
25cc_result check_once_cc_close(apiCB *context, ccache_p *ccache, cc_result expected_err, const char *description);
26
27int check_cc_destroy(void);
28cc_result check_once_cc_destroy(apiCB *context, ccache_p *ccache, cc_int32 expected_err, const char *description);
29
30int check_cc_get_cred_version(void);
31cc_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
33int check_cc_get_name(void);
34cc_int32 check_once_cc_get_name(apiCB *context, ccache_p *ccache, const char *expected_name, cc_int32 expected_err, const char *description);
35
36int check_cc_get_principal(void);
37cc_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
43int check_cc_set_principal(void);
44cc_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
46int check_cc_store(void);
47cc_result check_once_cc_store(apiCB *context, ccache_p *ccache, const cred_union in_creds, cc_int32 expected_err, const char *description);
48
49int check_cc_remove_cred(void);
50cc_result check_once_cc_remove_cred(apiCB *context, ccache_p *ccache, cred_union in_creds, cc_int32 expected_err, const char *description);
51
52int check_cc_seq_fetch_NCs_begin(void);
53cc_result check_once_cc_seq_fetch_NCs_begin(apiCB *context, ccache_cit **iterator, cc_result expected_err, const char *description);
54
55int check_cc_seq_fetch_NCs_next(void);
56cc_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
58int check_cc_get_NC_info(void);
59cc_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
67int check_cc_seq_fetch_creds_begin(void);
68cc_result check_once_cc_seq_fetch_creds_begin(apiCB *context, ccache_p *ccache, ccache_cit **iterator, cc_result expected_err, const char *description);
69
70int check_cc_seq_fetch_creds_next(void);
71cc_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