• Home
  • Raw
  • Download

Lines Matching refs:pval

65 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine);
74 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_item_ex_free() argument
76 asn1_item_combine_free(pval, it, 0); in ASN1_item_ex_free()
79 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int combine) in asn1_item_combine_free() argument
87 if (!pval) in asn1_item_combine_free()
89 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval) in asn1_item_combine_free()
101 ASN1_template_free(pval, it->templates); in asn1_item_combine_free()
103 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
107 ASN1_primitive_free(pval, it); in asn1_item_combine_free()
113 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in asn1_item_combine_free()
117 i = asn1_get_choice_selector(pval, it); in asn1_item_combine_free()
122 pchval = asn1_get_field_ptr(pval, tt); in asn1_item_combine_free()
126 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in asn1_item_combine_free()
129 OPENSSL_free(*pval); in asn1_item_combine_free()
130 *pval = NULL; in asn1_item_combine_free()
137 cf->asn1_free(*pval); in asn1_item_combine_free()
143 ef->asn1_ex_free(pval, it); in asn1_item_combine_free()
148 if (asn1_do_lock(pval, -1, it) > 0) in asn1_item_combine_free()
152 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL); in asn1_item_combine_free()
156 asn1_enc_free(pval, it); in asn1_item_combine_free()
166 seqtt = asn1_do_adb(pval, tt, 0); in asn1_item_combine_free()
169 pseqval = asn1_get_field_ptr(pval, seqtt); in asn1_item_combine_free()
173 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL); in asn1_item_combine_free()
176 OPENSSL_free(*pval); in asn1_item_combine_free()
177 *pval = NULL; in asn1_item_combine_free()
183 void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt) in ASN1_template_free() argument
188 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in ASN1_template_free()
197 *pval = NULL; in ASN1_template_free()
200 asn1_item_combine_free(pval, ASN1_ITEM_ptr(tt->item), in ASN1_template_free()
204 void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it) in ASN1_primitive_free() argument
213 pf->prim_free(pval, it); in ASN1_primitive_free()
220 ASN1_TYPE *typ = (ASN1_TYPE *)*pval; in ASN1_primitive_free()
222 pval = &typ->value.asn1_value; in ASN1_primitive_free()
223 if (!*pval) in ASN1_primitive_free()
229 if (!*pval) in ASN1_primitive_free()
235 if ((utype != V_ASN1_BOOLEAN) && !*pval) in ASN1_primitive_free()
242 ASN1_OBJECT_free((ASN1_OBJECT *)*pval); in ASN1_primitive_free()
247 *(ASN1_BOOLEAN *)pval = it->size; in ASN1_primitive_free()
249 *(ASN1_BOOLEAN *)pval = -1; in ASN1_primitive_free()
256 ASN1_primitive_free(pval, NULL); in ASN1_primitive_free()
257 OPENSSL_free(*pval); in ASN1_primitive_free()
261 ASN1_STRING_free((ASN1_STRING *)*pval); in ASN1_primitive_free()
262 *pval = NULL; in ASN1_primitive_free()
265 *pval = NULL; in ASN1_primitive_free()