Lines Matching refs:it
20 const ASN1_ITEM *it, int tag, int aclass);
28 const ASN1_ITEM *it, int flags);
30 const ASN1_ITEM *it);
38 const ASN1_ITEM *it) in ASN1_item_ndef_i2d() argument
40 return asn1_item_flags_i2d(val, out, it, ASN1_TFLG_NDEF); in ASN1_item_ndef_i2d()
43 int ASN1_item_i2d(const ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it) in ASN1_item_i2d() argument
45 return asn1_item_flags_i2d(val, out, it, 0); in ASN1_item_i2d()
56 const ASN1_ITEM *it, int flags) in asn1_item_flags_i2d() argument
62 len = ASN1_item_ex_i2d(&val, NULL, it, -1, flags); in asn1_item_flags_i2d()
68 ASN1_item_ex_i2d(&val, &p, it, -1, flags); in asn1_item_flags_i2d()
73 return ASN1_item_ex_i2d(&val, out, it, -1, flags); in asn1_item_flags_i2d()
82 const ASN1_ITEM *it, int tag, int aclass) in ASN1_item_ex_i2d() argument
87 const ASN1_AUX *aux = it->funcs; in ASN1_item_ex_i2d()
90 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d()
98 switch (it->itype) { in ASN1_item_ex_i2d()
101 if (it->templates) in ASN1_item_ex_i2d()
102 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d()
104 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
115 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d()
126 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
128 i = ossl_asn1_get_choice_selector_const(pval, it); in ASN1_item_ex_i2d()
129 if ((i >= 0) && (i < it->tcount)) { in ASN1_item_ex_i2d()
132 chtt = it->templates + i; in ASN1_item_ex_i2d()
137 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL)) in ASN1_item_ex_i2d()
143 ef = it->funcs; in ASN1_item_ex_i2d()
144 return ef->asn1_ex_i2d(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
153 i = ossl_asn1_enc_restore(&seqcontlen, out, pval, it); in ASN1_item_ex_i2d()
169 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
172 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { in ASN1_item_ex_i2d()
191 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) { in ASN1_item_ex_i2d()
203 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL)) in ASN1_item_ex_i2d()
463 const ASN1_ITEM *it, int tag, int aclass) in asn1_i2d_ex_primitive() argument
470 utype = it->utype; in asn1_i2d_ex_primitive()
476 len = asn1_ex_i2c(pval, NULL, &utype, it); in asn1_i2d_ex_primitive()
508 asn1_ex_i2c(pval, *out, &utype, it); in asn1_i2d_ex_primitive()
523 const ASN1_ITEM *it) in asn1_ex_i2c() argument
533 pf = it->funcs; in asn1_ex_i2c()
535 return pf->prim_i2c(pval, cout, putype, it); in asn1_ex_i2c()
538 if ((it->itype != ASN1_ITYPE_PRIMITIVE) in asn1_ex_i2c()
539 || (it->utype != V_ASN1_BOOLEAN)) { in asn1_ex_i2c()
544 if (it->itype == ASN1_ITYPE_MSTRING) { in asn1_ex_i2c()
549 } else if (it->utype == V_ASN1_ANY) { in asn1_ex_i2c()
577 if (it->utype != V_ASN1_ANY) { in asn1_ex_i2c()
581 if (*tbool && (it->size > 0)) in asn1_ex_i2c()
583 if (!*tbool && !it->size) in asn1_ex_i2c()
622 if ((it->size == ASN1_TFLG_NDEF) in asn1_ex_i2c()