Home | History | Annotate | Download | only in x509

Lines Matching defs:arg

128 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok);
290 tag_exp_arg *arg = bitstr;
325 arg->utype = utype;
326 arg->str = vstart;
341 if (arg->imp_tag != -1)
346 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class))
354 if (!append_exp(arg, tmp_tag, tmp_class, 1, 0, 0))
359 if (!append_exp(arg, V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, 1, 0, 1))
364 if (!append_exp(arg, V_ASN1_SET, V_ASN1_UNIVERSAL, 1, 0, 1))
369 if (!append_exp(arg, V_ASN1_BIT_STRING, V_ASN1_UNIVERSAL, 0, 1, 1))
374 if (!append_exp(arg, V_ASN1_OCTET_STRING, V_ASN1_UNIVERSAL, 0, 0, 1))
385 arg->format = ASN1_GEN_FORMAT_ASCII;
387 arg->format = ASN1_GEN_FORMAT_UTF8;
389 arg->format = ASN1_GEN_FORMAT_HEX;
391 arg->format = ASN1_GEN_FORMAT_BITLIST;
531 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class, int exp_constructed, int exp_pad, int imp_ok)
535 if ((arg->imp_tag != -1) && !imp_ok)
541 if (arg->exp_count == ASN1_FLAG_EXP_MAX)
547 exp_tmp = &arg->exp_list[arg->exp_count++];
552 if (arg->imp_tag != -1)
554 exp_tmp->exp_tag = arg->imp_tag;
555 exp_tmp->exp_class = arg->imp_class;
556 arg->imp_tag = -1;
557 arg->imp_class = -1;