Lines Matching refs:it

18 void ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it)  in ASN1_item_free()  argument
20 ossl_asn1_item_embed_free(&val, it, 0); in ASN1_item_free()
23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
25 ossl_asn1_item_embed_free(pval, it, 0); in ASN1_item_ex_free()
28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_item_embed_free() argument
32 const ASN1_AUX *aux = it->funcs; in ossl_asn1_item_embed_free()
38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ossl_asn1_item_embed_free()
45 switch (it->itype) { in ossl_asn1_item_embed_free()
48 if (it->templates) in ossl_asn1_item_embed_free()
49 ossl_asn1_template_free(pval, it->templates); in ossl_asn1_item_embed_free()
51 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
55 ossl_asn1_primitive_free(pval, it, embed); in ossl_asn1_item_embed_free()
60 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in ossl_asn1_item_embed_free()
64 i = ossl_asn1_get_choice_selector(pval, it); in ossl_asn1_item_embed_free()
65 if ((i >= 0) && (i < it->tcount)) { in ossl_asn1_item_embed_free()
68 tt = it->templates + i; in ossl_asn1_item_embed_free()
73 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in ossl_asn1_item_embed_free()
81 ef = it->funcs; in ossl_asn1_item_embed_free()
83 ef->asn1_ex_free(pval, it); in ossl_asn1_item_embed_free()
88 if (ossl_asn1_do_lock(pval, -1, it) != 0) { in ossl_asn1_item_embed_free()
95 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in ossl_asn1_item_embed_free()
99 ossl_asn1_enc_free(pval, it); in ossl_asn1_item_embed_free()
105 tt = it->templates + it->tcount; in ossl_asn1_item_embed_free()
106 for (i = 0; i < it->tcount; i++) { in ossl_asn1_item_embed_free()
117 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in ossl_asn1_item_embed_free()
150 void ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_primitive_free() argument
155 if (it) { in ossl_asn1_primitive_free()
156 const ASN1_PRIMITIVE_FUNCS *pf = it->funcs; in ossl_asn1_primitive_free()
160 pf->prim_clear(pval, it); in ossl_asn1_primitive_free()
164 pf->prim_free(pval, it); in ossl_asn1_primitive_free()
170 if (!it) { in ossl_asn1_primitive_free()
177 } else if (it->itype == ASN1_ITYPE_MSTRING) { in ossl_asn1_primitive_free()
182 utype = it->utype; in ossl_asn1_primitive_free()
193 if (it) in ossl_asn1_primitive_free()
194 *(ASN1_BOOLEAN *)pval = it->size; in ossl_asn1_primitive_free()