• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/asn1/

Lines Matching refs:pval

65 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it,
75 void ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
77 asn1_item_combine_free(pval, it, 0);
80 static void asn1_item_combine_free(ASN1_VALUE **pval, const ASN1_ITEM *it,
89 if (!pval)
91 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
102 ASN1_template_free(pval, it->templates);
104 ASN1_primitive_free(pval, it);
108 ASN1_primitive_free(pval, it);
113 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
117 i = asn1_get_choice_selector(pval, it);
121 pchval = asn1_get_field_ptr(pval, tt);
125 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
127 OPENSSL_free(*pval);
128 *pval = NULL;
135 cf->asn1_free(*pval);
141 ef->asn1_ex_free(pval, it);
146 if (asn1_do_lock(pval, -1, it) > 0)
149 i = asn1_cb(ASN1_OP_FREE_PRE, pval, it, NULL);
153 asn1_enc_free(pval, it);
162 seqtt = asn1_do_adb(pval, tt, 0);
165 pseqval = asn1_get_field_ptr(pval, seqtt);
169 asn1_cb(ASN1_OP_FREE_POST, pval, it, NULL);
171 OPENSSL_free(*pval);
172 *pval = NULL;
178 void ASN1_template_free(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt)
182 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
189 *pval = NULL;
191 asn1_item_combine_free(pval, ASN1_ITEM_ptr(tt->item),
195 void ASN1_primitive_free(ASN1_VALUE **pval, const ASN1_ITEM *it)
202 pf->prim_free(pval, it);
208 ASN1_TYPE *typ = (ASN1_TYPE *)*pval;
210 pval = &typ->value.asn1_value;
211 if (!*pval)
215 if (!*pval)
219 if ((utype != V_ASN1_BOOLEAN) && !*pval)
225 ASN1_OBJECT_free((ASN1_OBJECT *)*pval);
230 *(ASN1_BOOLEAN *)pval = it->size;
232 *(ASN1_BOOLEAN *)pval = -1;
239 ASN1_primitive_free(pval, NULL);
240 OPENSSL_free(*pval);
244 ASN1_STRING_free((ASN1_STRING *)*pval);
245 *pval = NULL;
248 *pval = NULL;