Lines Matching refs:pval
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
36 if (pval == NULL) in ossl_asn1_item_embed_free()
38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) 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()
69 pchval = ossl_asn1_get_field_ptr(pval, tt); in ossl_asn1_item_embed_free()
73 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in ossl_asn1_item_embed_free()
75 OPENSSL_free(*pval); in ossl_asn1_item_embed_free()
76 *pval = NULL; 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()
91 *pval = NULL; 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()
110 seqtt = ossl_asn1_do_adb(*pval, tt, 0); in ossl_asn1_item_embed_free()
113 pseqval = ossl_asn1_get_field_ptr(pval, seqtt); in ossl_asn1_item_embed_free()
117 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in ossl_asn1_item_embed_free()
119 OPENSSL_free(*pval); in ossl_asn1_item_embed_free()
120 *pval = NULL; in ossl_asn1_item_embed_free()
126 void ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) in ossl_asn1_template_free() argument
131 tval = (ASN1_VALUE *)pval; in ossl_asn1_template_free()
132 pval = &tval; in ossl_asn1_template_free()
135 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in ossl_asn1_template_free()
144 *pval = NULL; in ossl_asn1_template_free()
146 ossl_asn1_item_embed_free(pval, ASN1_ITEM_ptr(tt->item), embed); in ossl_asn1_template_free()
150 void ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed) in ossl_asn1_primitive_free() argument
160 pf->prim_clear(pval, it); in ossl_asn1_primitive_free()
164 pf->prim_free(pval, it); in ossl_asn1_primitive_free()
171 ASN1_TYPE *typ = (ASN1_TYPE *)*pval; in ossl_asn1_primitive_free()
174 pval = &typ->value.asn1_value; in ossl_asn1_primitive_free()
175 if (*pval == NULL) in ossl_asn1_primitive_free()
179 if (*pval == NULL) in ossl_asn1_primitive_free()
183 if ((utype != V_ASN1_BOOLEAN) && *pval == NULL) in ossl_asn1_primitive_free()
189 ASN1_OBJECT_free((ASN1_OBJECT *)*pval); in ossl_asn1_primitive_free()
194 *(ASN1_BOOLEAN *)pval = it->size; in ossl_asn1_primitive_free()
196 *(ASN1_BOOLEAN *)pval = -1; in ossl_asn1_primitive_free()
203 ossl_asn1_primitive_free(pval, NULL, 0); in ossl_asn1_primitive_free()
204 OPENSSL_free(*pval); in ossl_asn1_primitive_free()
208 ossl_asn1_string_embed_free((ASN1_STRING *)*pval, embed); in ossl_asn1_primitive_free()
211 *pval = NULL; in ossl_asn1_primitive_free()