• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/crypto/heimdal/lib/hx509/

Lines Matching refs:context

37 test_name(hx509_context context, const char *name)
43 ret = hx509_parse_name(context, name, &n);
61 test_name_fail(hx509_context context, const char *name)
65 if (hx509_parse_name(context, name, &n) == HX509_NAME_MALFORMED)
72 test_expand(hx509_context context, const char *name, const char *expected)
79 hx509_env_add(context, &env, "uid", "lha");
81 ret = hx509_parse_name(context, name, &n);
85 ret = hx509_name_expand(context, n, env);
314 test_compare(hx509_context context)
322 ret = hx509_cert_init_data(context, certdata1, sizeof(certdata1) - 1, &c1);
325 ret = hx509_cert_init_data(context, certdata2, sizeof(certdata2) - 1, &c2);
328 ret = hx509_cert_init_data(context, certdata3, sizeof(certdata3) - 1, &c3);
356 hx509_context context;
359 ret = hx509_context_init(&context);
363 ret += test_name(context, "CN=foo,C=SE");
364 ret += test_name(context, "CN=foo,CN=kaka,CN=FOO,DC=ad1,C=SE");
365 ret += test_name(context, "1.2.3.4=foo,C=SE");
366 ret += test_name_fail(context, "=");
367 ret += test_name_fail(context, "CN=foo,=foo");
368 ret += test_name_fail(context, "CN=foo,really-unknown-type=foo");
370 ret += test_expand(context, "UID=${uid},C=SE", "UID=lha,C=SE");
371 ret += test_expand(context, "UID=foo${uid},C=SE", "UID=foolha,C=SE");
372 ret += test_expand(context, "UID=${uid}bar,C=SE", "UID=lhabar,C=SE");
373 ret += test_expand(context, "UID=f${uid}b,C=SE", "UID=flhab,C=SE");
374 ret += test_expand(context, "UID=${uid}${uid},C=SE", "UID=lhalha,C=SE");
375 ret += test_expand(context, "UID=${uid}{uid},C=SE", "UID=lha{uid},C=SE");
377 ret += test_compare(context);
379 hx509_context_free(&context);