Lines Matching refs:pval

63 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine);
72 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
74 asn1_item_combine_free(pval, it, 0); in ASN1_item_ex_free()
77 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) in asn1_item_combine_free() argument
85 if (!pval) in asn1_item_combine_free()
87 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval) in asn1_item_combine_free()
99 ASN1_template_free(pval, it->templates); in asn1_item_combine_free()
101 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
105 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
111 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in asn1_item_combine_free()
115 i = asn1_get_choice_selector(pval, it); in asn1_item_combine_free()
120 pchval = asn1_get_field_ptr(pval, tt); in asn1_item_combine_free()
124 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in asn1_item_combine_free()
127 OPENSSL_free(*pval); in asn1_item_combine_free()
128 *pval = NULL; in asn1_item_combine_free()
135 cf->asn1_free(*pval); in asn1_item_combine_free()
141 ef->asn1_ex_free(pval, it); in asn1_item_combine_free()
146 if (!asn1_refcount_dec_and_test_zero(pval, it)) in asn1_item_combine_free()
150 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in asn1_item_combine_free()
154 asn1_enc_free(pval, it); in asn1_item_combine_free()
164 seqtt = asn1_do_adb(pval, tt, 0); in asn1_item_combine_free()
167 pseqval = asn1_get_field_ptr(pval, seqtt); in asn1_item_combine_free()
171 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in asn1_item_combine_free()
174 OPENSSL_free(*pval); in asn1_item_combine_free()
175 *pval = NULL; in asn1_item_combine_free()
181 void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) in ASN1_template_free() argument
186 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in ASN1_template_free()
195 *pval = NULL; in ASN1_template_free()
198 asn1_item_combine_free(pval, ASN1_ITEM_ptr(tt->item), in ASN1_template_free()
202 void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_primitive_free() argument
211 pf->prim_free(pval, it); in ASN1_primitive_free()
218 ASN1_TYPE *typ = (ASN1_TYPE *)*pval; in ASN1_primitive_free()
220 pval = &typ->value.asn1_value; in ASN1_primitive_free()
221 if (!*pval) in ASN1_primitive_free()
227 if (!*pval) in ASN1_primitive_free()
233 if ((utype != V_ASN1_BOOLEAN) && !*pval) in ASN1_primitive_free()
240 ASN1_OBJECT_free((ASN1_OBJECT *)*pval); in ASN1_primitive_free()
245 *(ASN1_BOOLEAN *)pval = it->size; in ASN1_primitive_free()
247 *(ASN1_BOOLEAN *)pval = -1; in ASN1_primitive_free()
254 ASN1_primitive_free(pval, NULL); in ASN1_primitive_free()
255 OPENSSL_free(*pval); in ASN1_primitive_free()
259 ASN1_STRING_free((ASN1_STRING *)*pval); in ASN1_primitive_free()
260 *pval = NULL; in ASN1_primitive_free()
263 *pval = NULL; in ASN1_primitive_free()