Lines Matching defs:arg
69 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class,
242 tag_exp_arg *arg = bitstr;
272 arg->utype = utype;
273 arg->str = vstart;
286 if (arg->imp_tag != -1) {
290 if (!parse_tagging(vstart, vlen, &arg->imp_tag, &arg->imp_class))
298 if (!append_exp(arg, tmp_tag, tmp_class, 1, 0, 0))
303 if (!append_exp(arg, V_ASN1_SEQUENCE, V_ASN1_UNIVERSAL, 1, 0, 1))
308 if (!append_exp(arg, V_ASN1_SET, V_ASN1_UNIVERSAL, 1, 0, 1))
313 if (!append_exp(arg, V_ASN1_BIT_STRING, V_ASN1_UNIVERSAL, 0, 1, 1))
318 if (!append_exp(arg, V_ASN1_OCTET_STRING, V_ASN1_UNIVERSAL, 0, 0, 1))
328 arg->format = ASN1_GEN_FORMAT_ASCII;
330 arg->format = ASN1_GEN_FORMAT_UTF8;
332 arg->format = ASN1_GEN_FORMAT_HEX;
334 arg->format = ASN1_GEN_FORMAT_BITLIST;
462 static int append_exp(tag_exp_arg *arg, int exp_tag, int exp_class,
467 if ((arg->imp_tag != -1) && !imp_ok) {
472 if (arg->exp_count == ASN1_FLAG_EXP_MAX) {
477 exp_tmp = &arg->exp_list[arg->exp_count++];
483 if (arg->imp_tag != -1) {
484 exp_tmp->exp_tag = arg->imp_tag;
485 exp_tmp->exp_class = arg->imp_class;
486 arg->imp_tag = -1;
487 arg->imp_class = -1;
762 static int mask_cb(const char *elem, int len, void *arg)
764 unsigned long *pmask = arg, tmpmask;