Lines Matching refs:test_creds
47 krb5_creds test_creds;
71 memset(&test_creds, 0, sizeof(test_creds));
72 test_creds.magic = KV5M_CREDS;
76 test_creds.client = test_ctx->client_principal;
80 test_creds.server = test_ctx->server_principal;
82 test_creds.keyblock.magic = KV5M_KEYBLOCK;
83 test_creds.keyblock.contents = 0;
84 test_creds.keyblock.enctype = 1;
85 test_creds.keyblock.length = 1;
86 test_creds.keyblock.contents = (unsigned char *) discard_const("1");
87 test_creds.times.authtime = 1111;
88 test_creds.times.starttime = 2222;
89 test_creds.times.endtime = 3333;
90 test_creds.times.renew_till = 4444;
91 test_creds.is_skey = 1;
92 test_creds.ticket_flags = 5555;
93 test_creds.addresses = addrs;
95 test_creds.ticket.magic = KV5M_DATA;
96 test_creds.ticket.length = sizeof("Ticket");
97 test_creds.ticket.data = discard_const("Ticket");
99 test_creds.authdata = malloc (2 * sizeof(krb5_authdata *));
100 assert_non_null(test_creds.authdata);
111 test_creds.authdata[0] = a;
112 test_creds.authdata[1] = NULL;
121 kerr = krb5_cc_initialize(test_ctx->kctx, ccache, test_creds.client);
124 kerr = krb5_cc_store_cred(test_ctx->kctx, ccache, &test_creds);
133 krb5_free_authdata(test_ctx->kctx, test_creds.authdata);