summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/ccache/file/fcc_test.c69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/file/fcc_test.c b/src/lib/krb5/ccache/file/fcc_test.c
new file mode 100644
index 000000000..3b6edcecc
--- /dev/null
+++ b/src/lib/krb5/ccache/file/fcc_test.c
@@ -0,0 +1,69 @@
+#include <krb5/copyright.h>
+
+#include "fcc.h"
+
+krb5_data client[] = {
+ {
+#define DATA "client1-comp1"
+ sizeof(DATA),
+ DATA,
+#undef DATA
+ },
+ {
+#define DATA "client1-comp2"
+ sizeof(DATA),
+ DATA,
+#undef DATA
+ },
+};
+
+krb5_data server[] = {
+ {
+#define DATA "server1-comp1"
+ sizeof(DATA),
+ DATA,
+#undef DATA
+ },
+ {
+#define DATA "server1-comp2"
+ sizeof(DATA),
+ DATA,
+#undef DATA
+ },
+};
+
+krb5_creds test_creds = {
+ NULL,
+ NULL,
+ {
+ 1,
+ 5,
+ "1"
+ },
+ {
+ 1111,
+ 2222,
+ 3333,
+ 4444
+ },
+ 1,
+ 5555,
+ {
+#define TICKET "This is ticket 1"
+ sizeof(TICKET),
+ TICKET,
+#undef TICKET
+ },
+ {
+#define TICKET "This is ticket 2"
+ sizeof(TICKET),
+ TICKET,
+#undef TICKET
+ },
+};
+
+void init_test_cred()
+{
+ test_creds.client = &client;
+ test_creds.server = &server;
+}