Lines Matching refs:kctx
37 krb5_context kctx;
56 kerr = krb5_init_context(&test_ctx->kctx);
61 kerr = krb5_parse_name(test_ctx->kctx, KEYTAB_TEST_PRINC,
72 kerr = mock_keytab(test_ctx->kctx, test_ctx->keytab_file_name, keys, nkeys);
87 krb5_free_principal(test_ctx->kctx, test_ctx->principal);
88 krb5_free_context(test_ctx->kctx);
114 kerr = copy_keytab_into_memory(test_ctx, test_ctx->kctx,
120 kerr = krb5_kt_resolve(test_ctx->kctx, mem_keytab_name, &keytab);
123 kerr = krb5_kt_get_entry(test_ctx->kctx, keytab, test_ctx->principal, 9, 9,
127 kerr = krb5_kt_get_entry(test_ctx->kctx, keytab, test_ctx->principal, 1, 1,
130 krb5_free_keytab_entry_contents(test_ctx->kctx, &kent);
132 kerr = krb5_kt_get_entry(test_ctx->kctx, keytab, test_ctx->principal, 1, 2,
135 krb5_free_keytab_entry_contents(test_ctx->kctx, &kent);
137 kerr = krb5_kt_get_entry(test_ctx->kctx, keytab, test_ctx->principal, 2, 1,
140 krb5_free_keytab_entry_contents(test_ctx->kctx, &kent);
142 kerr = krb5_kt_get_entry(test_ctx->kctx, keytab, test_ctx->principal, 2, 2,
145 krb5_free_keytab_entry_contents(test_ctx->kctx, &kent);
149 kerr = krb5_kt_close(test_ctx->kctx, keytab);
152 kerr = krb5_kt_close(test_ctx->kctx, mem_keytab);
164 kerr = krb5_kt_resolve(test_ctx->kctx, test_ctx->keytab_file_name, &keytab);
167 kerr = sss_krb5_kt_have_content(test_ctx->kctx, keytab);
170 kerr = krb5_kt_close(test_ctx->kctx, keytab);
173 kerr = krb5_kt_resolve(test_ctx->kctx, "FILE:" EMPTY_KEYTAB_PATH, &keytab);
176 kerr = sss_krb5_kt_have_content(test_ctx->kctx, keytab);
179 kerr = krb5_kt_close(test_ctx->kctx, keytab);
215 kerr = copy_keytab_into_memory(test_ctx, test_ctx->kctx,
221 kerr = krb5_kt_resolve(test_ctx->kctx, mem_keytab_name, &mem_keytab);
224 kerr = krb5_kt_resolve(test_ctx->kctx, test_ctx->keytab_file_name, &keytab);
227 kerr = krb5_kt_start_seq_get(test_ctx->kctx, mem_keytab, &mem_cursor);
230 kerr = krb5_kt_start_seq_get(test_ctx->kctx, keytab, &cursor);
233 while ((kerr = krb5_kt_next_entry(test_ctx->kctx, keytab, &kent,
235 kerr_mem = krb5_kt_next_entry(test_ctx->kctx, mem_keytab, &mem_kent,
241 krb5_free_keytab_entry_contents(test_ctx->kctx, &kent);
242 krb5_free_keytab_entry_contents(test_ctx->kctx, &mem_kent);
247 kerr_mem = krb5_kt_next_entry(test_ctx->kctx, mem_keytab, &mem_kent,
251 kerr = krb5_kt_end_seq_get(test_ctx->kctx, mem_keytab, &mem_cursor);
254 kerr = krb5_kt_end_seq_get(test_ctx->kctx, keytab, &cursor);
259 kerr = krb5_kt_close(test_ctx->kctx, keytab);
262 kerr = krb5_kt_close(test_ctx->kctx, mem_keytab);