Lines Matching refs:it
29 long len, const ASN1_ITEM *it,
59 const ASN1_ITEM *it,
63 int utype, char *free_cont, const ASN1_ITEM *it);
108 long len, const ASN1_ITEM *it, int tag, in asn1_item_ex_d2i_intern() argument
114 if (pval == NULL || it == NULL) { in asn1_item_ex_d2i_intern()
118 rv = asn1_item_embed_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0, in asn1_item_ex_d2i_intern()
121 ASN1_item_ex_free(pval, it); in asn1_item_ex_d2i_intern()
126 const ASN1_ITEM *it, in ASN1_item_ex_d2i() argument
129 return asn1_item_ex_d2i_intern(pval, in, len, it, tag, aclass, opt, ctx, in ASN1_item_ex_d2i()
135 const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, in ASN1_item_d2i_ex() argument
144 if (asn1_item_ex_d2i_intern(pval, in, len, it, -1, 0, 0, &c, libctx, in ASN1_item_d2i_ex()
152 const ASN1_ITEM *it) in ASN1_item_d2i() argument
154 return ASN1_item_d2i_ex(pval, in, len, it, NULL, NULL); in ASN1_item_d2i()
163 long len, const ASN1_ITEM *it, in asn1_item_embed_d2i() argument
181 if (pval == NULL || it == NULL) { in asn1_item_embed_d2i()
189 aux = it->funcs; in asn1_item_embed_d2i()
200 switch (it->itype) { in asn1_item_embed_d2i()
202 if (it->templates) { in asn1_item_embed_d2i()
214 return asn1_template_ex_d2i(pval, in, len, it->templates, opt, ctx, in asn1_item_embed_d2i()
217 return asn1_d2i_ex_primitive(pval, in, len, it, in asn1_item_embed_d2i()
249 if (!(ASN1_tag2bit(otag) & it->utype)) { in asn1_item_embed_d2i()
256 return asn1_d2i_ex_primitive(pval, in, len, it, otag, 0, 0, ctx); in asn1_item_embed_d2i()
260 ef = it->funcs; in asn1_item_embed_d2i()
262 return ef->asn1_ex_d2i_ex(pval, in, len, it, tag, aclass, opt, ctx, in asn1_item_embed_d2i()
264 return ef->asn1_ex_d2i(pval, in, len, it, tag, aclass, opt, ctx); in asn1_item_embed_d2i()
276 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL)) in asn1_item_embed_d2i()
280 i = ossl_asn1_get_choice_selector(pval, it); in asn1_item_embed_d2i()
281 if ((i >= 0) && (i < it->tcount)) { in asn1_item_embed_d2i()
282 tt = it->templates + i; in asn1_item_embed_d2i()
285 ossl_asn1_set_choice_selector(pval, -1, it); in asn1_item_embed_d2i()
287 } else if (!ossl_asn1_item_ex_new_intern(pval, it, libctx, propq)) { in asn1_item_embed_d2i()
293 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
317 if (i == it->tcount) { in asn1_item_embed_d2i()
321 ASN1_item_ex_free(pval, it); in asn1_item_embed_d2i()
328 ossl_asn1_set_choice_selector(pval, i, it); in asn1_item_embed_d2i()
330 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL)) in asn1_item_embed_d2i()
366 && !ossl_asn1_item_ex_new_intern(pval, it, libctx, propq)) { in asn1_item_embed_d2i()
371 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL)) in asn1_item_embed_d2i()
375 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
388 for (i = 0, tt = it->templates; i < it->tcount; i++, tt++) { in asn1_item_embed_d2i()
414 if (i == (it->tcount - 1)) in asn1_item_embed_d2i()
454 for (; i < it->tcount; tt++, i++) { in asn1_item_embed_d2i()
470 if (!ossl_asn1_enc_save(pval, *in, p - *in, it)) in asn1_item_embed_d2i()
472 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL)) in asn1_item_embed_d2i()
485 ", Type=", it->sname); in asn1_item_embed_d2i()
487 ERR_add_error_data(2, "Type=", it->sname); in asn1_item_embed_d2i()
700 const ASN1_ITEM *it, in asn1_d2i_ex_primitive() argument
716 if (it->itype == ASN1_ITYPE_MSTRING) { in asn1_d2i_ex_primitive()
720 utype = it->utype; in asn1_d2i_ex_primitive()
818 if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it)) in asn1_d2i_ex_primitive()
832 int utype, char *free_cont, const ASN1_ITEM *it) in asn1_ex_c2i() argument
840 pf = it->funcs; in asn1_ex_c2i()
843 return pf->prim_c2i(pval, cont, len, utype, free_cont, it); in asn1_ex_c2i()
845 if (it->utype == V_ASN1_ANY) { in asn1_ex_c2i()