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

Lines Matching refs:ret

41     int ret;
43 ret = hx509_parse_name(context, name, &n);
44 if (ret)
47 ret = hx509_name_to_string(n, &s);
48 if (ret)
77 int ret;
81 ret = hx509_parse_name(context, name, &n);
82 if (ret)
85 ret = hx509_name_expand(context, n, env);
87 if (ret)
90 ret = hx509_name_to_string(n, &s);
92 if (ret)
95 ret = strcmp(s, expected) != 0;
97 if (ret)
299 int ret;
301 ret = hx509_cert_get_subject(c1, &n1);
302 if (ret) return 1;
303 ret = hx509_cert_get_subject(c2, &n2);
304 if (ret) return 1;
316 int ret;
322 ret = hx509_cert_init_data(context, certdata1, sizeof(certdata1) - 1, &c1);
323 if (ret) return 1;
325 ret = hx509_cert_init_data(context, certdata2, sizeof(certdata2) - 1, &c2);
326 if (ret) return 1;
328 ret = hx509_cert_init_data(context, certdata3, sizeof(certdata3) - 1, &c3);
329 if (ret) return 1;
331 ret = compare_subject(c1, c1, &l0);
332 if (ret) return 1;
333 ret = compare_subject(c1, c2, &l1);
334 if (ret) return 1;
335 ret = compare_subject(c1, c3, &l2);
336 if (ret) return 1;
337 ret = compare_subject(c2, c3, &l3);
338 if (ret) return 1;
357 int ret = 0;
359 ret = hx509_context_init(&context);
360 if (ret)
361 errx(1, "hx509_context_init failed with %d", ret);
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);
381 return ret;