aboutsummaryrefslogtreecommitdiff
path: root/src/ccapi/test
diff options
context:
space:
mode:
authorKevin Koch <kpkoch@mit.edu>2007-07-12 14:46:56 +0000
committerKevin Koch <kpkoch@mit.edu>2007-07-12 14:46:56 +0000
commit39afc11f30d1e75df5bf2c1fe07b8e9cc4f7343d (patch)
treebc3f69e804293565b71efd858c392d580088d7c3 /src/ccapi/test
parent6de474e3de135ad265a77e945f7cd8ee638bddf4 (diff)
downloadkrb5-39afc11f30d1e75df5bf2c1fe07b8e9cc4f7343d.zip
krb5-39afc11f30d1e75df5bf2c1fe07b8e9cc4f7343d.tar.gz
krb5-39afc11f30d1e75df5bf2c1fe07b8e9cc4f7343d.tar.bz2
Added dummy Description arguments where needed. Compiles on Windows now
TargetVersion: 1.7 Component: krb5-libs Ticket: 5594 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19694 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/ccapi/test')
-rw-r--r--src/ccapi/test/test_ccapi_ccache.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ccapi/test/test_ccapi_ccache.c b/src/ccapi/test/test_ccapi_ccache.c
index 10f038f..bb599f9 100644
--- a/src/ccapi/test/test_ccapi_ccache.c
+++ b/src/ccapi/test/test_ccapi_ccache.c
@@ -6,7 +6,7 @@
#include <limits.h>
#include "test_ccapi_check.h"
#include "test_ccapi_util.h"
-
+#include "test_ccapi_context.h"
// ---------------------------------------------------------------------------
@@ -506,7 +506,11 @@ cc_int32 check_once_cc_ccache_get_name(cc_ccache_t ccache, const char *expected_
// ---------------------------------------------------------------------------
-cc_int32 check_once_cc_ccache_get_principal(cc_ccache_t ccache, cc_uint32 cred_vers, const char *expected_principal, cc_int32 expected_err, const char *description) {
+cc_int32 check_once_cc_ccache_get_principal(cc_ccache_t ccache,
+ cc_uint32 cred_vers,
+ const char *expected_principal,
+ cc_int32 expected_err,
+ const char *description) {
cc_int32 err = ccNoError;
cc_string_t stored_principal = NULL;
@@ -573,7 +577,7 @@ int check_cc_ccache_get_principal() {
err = cc_context_create_new_ccache(context, cc_credentials_v5, "foo/BAR@BAZ.ORG", &ccache);
}
if (!err) {
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, "foo/BAR@BAZ.ORG", ccNoError);
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, "foo/BAR@BAZ.ORG", ccNoError, "Description 1");
}
else {
log_error("cc_context_create_new_ccache failed, can't complete test");
@@ -589,7 +593,7 @@ int check_cc_ccache_get_principal() {
err = cc_context_create_new_ccache(context, cc_credentials_v4, "foo.BAR@BAZ.ORG", &ccache);
}
if (!err) {
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v4, "foo.BAR@BAZ.ORG", ccNoError);
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v4, "foo.BAR@BAZ.ORG", ccNoError, "Description 2");
}
else {
log_error("cc_context_create_new_ccache failed, can't complete test");
@@ -602,7 +606,7 @@ int check_cc_ccache_get_principal() {
check_once_cc_ccache_get_principal(ccache, cc_credentials_v4_v5, "foo.BAR@BAZ.ORG",
ccErrBadCredentialsVersion,
"passing cc_credentials_v4_v5 (shouldn't be allowed)");
- check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, NULL, ccErrBadParam);
+ check_once_cc_ccache_get_principal(ccache, cc_credentials_v5, NULL, ccErrBadParam, "Description 3");
}
if (ccache) {