From: Barry Jaspan Date: Fri, 19 Jan 1990 18:12:11 +0000 (+0000) Subject: Initial revision X-Git-Tag: krb5-1.0-alpha2~1229 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1fd52f2335c4be97a8aa0009b83437fed3e293b;p=krb5.git Initial revision git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@154 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 + +#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; +}