Lines Matching refs:arg
118 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok);
273 tag_exp_arg *arg = bitstr;
305 arg->utype = utype;
306 arg->str = vstart;
321 if (arg->imp_tag != -1)
326 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class))
334 if (!append_exp(arg, tmp_tag, tmp_class, 1, 0, 0))
339 if (!append_exp(arg, V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, 1, 0, 1))
344 if (!append_exp(arg, V_ASN1_SET, V_ASN1_UNIVERSAL, 1, 0, 1))
349 if (!append_exp(arg, V_ASN1_BIT_STRING, V_ASN1_UNIVERSAL, 0, 1, 1))
354 if (!append_exp(arg, V_ASN1_OCTET_STRING, V_ASN1_UNIVERSAL, 0, 0, 1))
360 arg->format = ASN1_GEN_FORMAT_ASCII;
362 arg->format = ASN1_GEN_FORMAT_UTF8;
364 arg->format = ASN1_GEN_FORMAT_HEX;
366 arg->format = ASN1_GEN_FORMAT_BITLIST;
516 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok)
520 if ((arg->imp_tag != -1) && !imp_ok)
526 if (arg->exp_count == ASN1_FLAG_EXP_MAX)
532 exp_tmp = &arg->exp_list[arg->exp_count++];
537 if (arg->imp_tag != -1)
539 exp_tmp->exp_tag = arg->imp_tag;
540 exp_tmp->exp_class = arg->imp_class;
541 arg->imp_tag = -1;
542 arg->imp_class = -1;