diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2008-03-10 21:55:44 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2008-03-10 21:55:44 +0000 |
commit | b03001c9aad53a6ecdc8ebef0493882bad0a826c (patch) | |
tree | c01a9f038d7ca77f971259d5196240ea09c38b77 /src/ccapi/test/test_ccapi_v2.h | |
parent | a28b624402aa0eac09ad93de5d1c5e6bccadcd82 (diff) | |
download | krb5-b03001c9aad53a6ecdc8ebef0493882bad0a826c.zip krb5-b03001c9aad53a6ecdc8ebef0493882bad0a826c.tar.gz krb5-b03001c9aad53a6ecdc8ebef0493882bad0a826c.tar.bz2 |
Add CCAPI v2 tests
First pass at CCAPI v2 tests. More commits to this bug will follow.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20269 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/test/test_ccapi_v2.h')
-rw-r--r-- | src/ccapi/test/test_ccapi_v2.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/ccapi/test/test_ccapi_v2.h b/src/ccapi/test/test_ccapi_v2.h new file mode 100644 index 0000000..4596bb5 --- /dev/null +++ b/src/ccapi/test/test_ccapi_v2.h @@ -0,0 +1,51 @@ +#ifndef _TEST_CCAPI_V2_H_ +#define _TEST_CCAPI_V2_H_ + +#include "test_ccapi_globals.h" +#ifdef TARGET_OS_MAC +#include <Kerberos/CredentialsCache2.h> +#else +#include <CredentialsCache2.h> +#endif + + +int check_cc_shutdown(void); +cc_result check_once_cc_shutdown(apiCB **out_context, cc_result expected_err, const char *description); + +int check_cc_get_change_time(void); +cc_int32 check_once_cc_get_change_time(apiCB *context, cc_time_t *time, cc_result expected_err, const char *description); + +int check_cc_open(void); +cc_result check_once_cc_open(apiCB *context, const char *name, cc_int32 version, ccache_p **ccache, cc_result expected_err, const char *description); + +int check_cc_create(void); +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); + +int check_cc_close(void); +cc_result check_once_cc_close(apiCB *context, ccache_p *ccache, cc_result expected_err, const char *description); + +int check_cc_destroy(void); +cc_result check_once_cc_destroy(apiCB *context, ccache_p *ccache, cc_int32 expected_err, const char *description); + +int check_cc_get_cred_version(void); +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); + +int check_cc_get_name(void); +cc_int32 check_once_cc_get_name(apiCB *context, ccache_p *ccache, const char *expected_name, cc_int32 expected_err, const char *description); + +int check_cc_get_principal(void); +cc_result check_once_cc_get_principal(apiCB *context, + ccache_p *ccache, + const char *expected_principal, + cc_int32 expected_err, + const char *description); + +int check_cc_set_principal(void); +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); + +int check_cc_store(void); +cc_result check_once_cc_store(apiCB *context, ccache_p *ccache, const cred_union in_creds, cc_int32 expected_err, const char *description); + +int check_cc_remove_cred(void); +cc_result check_once_cc_remove_cred(apiCB *context, ccache_p *ccache, cred_union in_creds, cc_int32 expected_err, const char *description); +#endif /* _TEST_CCAPI_V2_H_ */ |