Home | History | Annotate | Download | only in asn1

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);
279 tag_exp_arg *arg = bitstr;
311 arg->utype = utype;
312 arg->str = vstart;
327 if (arg->imp_tag != -1)
332 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class))
340 if (!append_exp(arg, tmp_tag, tmp_class, 1, 0, 0))
345 if (!append_exp(arg, V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, 1, 0, 1))
350 if (!append_exp(arg, V_ASN1_SET, V_ASN1_UNIVERSAL, 1, 0, 1))
355 if (!append_exp(arg, V_ASN1_BIT_STRING, V_ASN1_UNIVERSAL, 0, 1, 1))
360 if (!append_exp(arg, V_ASN1_OCTET_STRING, V_ASN1_UNIVERSAL, 0, 0, 1))
366 arg->format = ASN1_GEN_FORMAT_ASCII;
368 arg->format = ASN1_GEN_FORMAT_UTF8;
370 arg->format = ASN1_GEN_FORMAT_HEX;
372 arg->format = ASN1_GEN_FORMAT_BITLIST;
512 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok)
516 if ((arg->imp_tag != -1) && !imp_ok)
522 if (arg->exp_count == ASN1_FLAG_EXP_MAX)
528 exp_tmp = &arg->exp_list[arg->exp_count++];
533 if (arg->imp_tag != -1)
535 exp_tmp->exp_tag = arg->imp_tag;
536 exp_tmp->exp_class = arg->imp_class;
537 arg->imp_tag = -1;
538 arg->imp_class = -1;