Lines Matching refs:pval

23 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
25 ossl_asn1_item_embed_free(pval, it, 0);
28 void ossl_asn1_item_embed_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed)
36 if (pval == NULL)
38 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
49 ossl_asn1_template_free(pval, it->templates);
51 ossl_asn1_primitive_free(pval, it, embed);
55 ossl_asn1_primitive_free(pval, it, embed);
60 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
64 i = ossl_asn1_get_choice_selector(pval, it);
69 pchval = ossl_asn1_get_field_ptr(pval, tt);
73 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
75 OPENSSL_free(*pval);
76 *pval = NULL;
83 ef->asn1_ex_free(pval, it);
88 if (ossl_asn1_do_lock(pval, -1, it) != 0) /* if error or ref-counter > 0 */
91 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
95 ossl_asn1_enc_free(pval, it);
106 seqtt = ossl_asn1_do_adb(*pval, tt, 0);
109 pseqval = ossl_asn1_get_field_ptr(pval, seqtt);
113 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
115 OPENSSL_free(*pval);
116 *pval = NULL;
122 void ossl_asn1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt)
127 tval = (ASN1_VALUE *)pval;
128 pval = &tval;
131 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
140 *pval = NULL;
142 ossl_asn1_item_embed_free(pval, ASN1_ITEM_ptr(tt->item), embed);
146 void ossl_asn1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it, int embed)
156 pf->prim_clear(pval, it);
160 pf->prim_free(pval, it);
167 ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
170 pval = &typ->value.asn1_value;
171 if (*pval == NULL)
175 if (*pval == NULL)
179 if ((utype != V_ASN1_BOOLEAN) && *pval == NULL)
185 ASN1_OBJECT_free((ASN1_OBJECT *)*pval);
190 *(ASN1_BOOLEAN *)pval = it->size;
192 *(ASN1_BOOLEAN *)pval = -1;
199 ossl_asn1_primitive_free(pval, NULL, 0);
200 OPENSSL_free(*pval);
204 ossl_asn1_string_embed_free((ASN1_STRING *)*pval, embed);
207 *pval = NULL;