Lines Matching refs:ret

162     int ret;  in stringtooid()  local
177 ret = der_parse_heim_oid(s, ".", oid); in stringtooid()
179 return ret; in stringtooid()
205 int ret; in _hx509_Name_to_string() local
240 ret = wind_ucs2utf8_length(bmp, bmplen, &k); in _hx509_Name_to_string()
241 if (ret) in _hx509_Name_to_string()
242 return ret; in _hx509_Name_to_string()
247 ret = wind_ucs2utf8(bmp, bmplen, ss, NULL); in _hx509_Name_to_string()
248 if (ret) { in _hx509_Name_to_string()
250 return ret; in _hx509_Name_to_string()
265 ret = wind_ucs4utf8_length(uni, unilen, &k); in _hx509_Name_to_string()
266 if (ret) in _hx509_Name_to_string()
267 return ret; in _hx509_Name_to_string()
272 ret = wind_ucs4utf8(uni, unilen, ss, NULL); in _hx509_Name_to_string()
273 if (ret) { in _hx509_Name_to_string()
275 return ret; in _hx509_Name_to_string()
336 int ret; in dsstringprep() local
366 ret = wind_utf8ucs4_length(ds->u.utf8String, &len); in dsstringprep()
367 if (ret) in dsstringprep()
368 return ret; in dsstringprep()
372 ret = wind_utf8ucs4(ds->u.utf8String, name, &len); in dsstringprep()
373 if (ret) { in dsstringprep()
375 return ret; in dsstringprep()
388 ret = wind_stringprep(name, len, *rname, rlen, flags); in dsstringprep()
389 if (ret == WIND_ERR_OVERRUN) { in dsstringprep()
397 if (ret) { in dsstringprep()
402 return ret; in dsstringprep()
415 int ret; in _hx509_name_ds_cmp() local
417 ret = dsstringprep(ds1, &ds1lp, &ds1len); in _hx509_name_ds_cmp()
418 if (ret) in _hx509_name_ds_cmp()
419 return ret; in _hx509_name_ds_cmp()
420 ret = dsstringprep(ds2, &ds2lp, &ds2len); in _hx509_name_ds_cmp()
421 if (ret) { in _hx509_name_ds_cmp()
423 return ret; in _hx509_name_ds_cmp()
444 int ret; in _hx509_name_cmp() local
462 ret = _hx509_name_ds_cmp(&n1->u.rdnSequence.val[i].val[j].value, in _hx509_name_cmp()
465 if (ret) in _hx509_name_cmp()
466 return ret; in _hx509_name_cmp()
490 int ret, diff; in hx509_name_cmp() local
491 ret = _hx509_name_cmp(&n1->der_name, &n2->der_name, &diff); in hx509_name_cmp()
492 if (ret) in hx509_name_cmp()
493 return ret; in hx509_name_cmp()
501 int ret; in _hx509_name_from_Name() local
505 ret = copy_Name(n, &(*name)->der_name); in _hx509_name_from_Name()
506 if (ret) { in _hx509_name_from_Name()
510 return ret; in _hx509_name_from_Name()
521 int ret; in _hx509_name_modify() local
547 ret = der_copy_oid(oid, &rdn->val[0].type); in _hx509_name_modify()
548 if (ret) in _hx509_name_modify()
549 return ret; in _hx509_name_modify()
577 int ret; in hx509_parse_name() local
606 ret = HX509_PARSING_NAME_FAILED; in hx509_parse_name()
607 hx509_set_error_string(context, 0, ret, "missing = in %s", p); in hx509_parse_name()
611 ret = HX509_PARSING_NAME_FAILED; in hx509_parse_name()
612 hx509_set_error_string(context, 0, ret, in hx509_parse_name()
618 ret = HX509_PARSING_NAME_FAILED; in hx509_parse_name()
619 hx509_set_error_string(context, 0, ret, " = after , in %s", p); in hx509_parse_name()
623 ret = stringtooid(p, q - p, &oid); in hx509_parse_name()
624 if (ret) { in hx509_parse_name()
625 ret = HX509_PARSING_NAME_FAILED; in hx509_parse_name()
626 hx509_set_error_string(context, 0, ret, in hx509_parse_name()
639 ret = ENOMEM; in hx509_parse_name()
640 hx509_set_error_string(context, 0, ret, "out of memory"); in hx509_parse_name()
646 ret = _hx509_name_modify(context, &n->der_name, 0, &oid, r); in hx509_parse_name()
649 if(ret) in hx509_parse_name()
678 int ret; in hx509_name_copy() local
683 ret = copy_Name(&from->der_name, &(*to)->der_name); in hx509_name_copy()
684 if (ret) { in hx509_name_copy()
856 int ret; in hx509_unparse_der_name() local
860 ret = decode_Name(data, length, &name, NULL); in hx509_unparse_der_name()
861 if (ret) in hx509_unparse_der_name()
862 return ret; in hx509_unparse_der_name()
863 ret = _hx509_Name_to_string(&name, str); in hx509_unparse_der_name()
865 return ret; in hx509_unparse_der_name()
884 int ret; in hx509_name_binary() local
886 ASN1_MALLOC_ENCODE(Name, os->data, os->length, &name->der_name, &size, ret); in hx509_name_binary()
887 if (ret) in hx509_name_binary()
888 return ret; in hx509_name_binary()
899 int ret; in _hx509_unparse_Name() local
901 ret = _hx509_name_from_Name(aname, &name); in _hx509_unparse_Name()
902 if (ret) in _hx509_unparse_Name()
903 return ret; in _hx509_unparse_Name()
905 ret = hx509_name_to_string(name, str); in _hx509_unparse_Name()
907 return ret; in _hx509_unparse_Name()
941 int ret = 0; in hx509_general_name_unparse() local
971 ret = _hx509_unparse_Name(&dir, &s); in hx509_general_name_unparse()
972 if (ret) in hx509_general_name_unparse()
973 return ret; in hx509_general_name_unparse()
1020 if (ret) in hx509_general_name_unparse()
1024 return ret; in hx509_general_name_unparse()