Lines Matching refs:pval

19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype,
83 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
92 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL)
104 return asn1_template_ex_i2d(pval, out, it->templates,
106 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
117 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
128 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
130 i = ossl_asn1_get_choice_selector_const(pval, it);
135 pchval = ossl_asn1_get_const_field_ptr(pval, chtt);
139 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
146 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
155 i = ossl_asn1_enc_restore(&seqcontlen, out, pval, it);
171 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
178 seqtt = ossl_asn1_do_adb(*pval, tt, 1);
181 pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
196 seqtt = ossl_asn1_do_adb(*pval, tt, 1);
199 pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt);
205 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
216 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
228 tval = (ASN1_VALUE *)pval;
229 pval = &tval;
272 STACK_OF(const_ASN1_VALUE) *sk = (STACK_OF(const_ASN1_VALUE) *)*pval;
277 if (*pval == NULL)
350 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), -1, iclass);
363 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), -1, iclass);
371 len = ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
468 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
482 len = asn1_ex_i2c(pval, NULL, &utype, it);
514 asn1_ex_i2c(pval, *out, &utype, it);
528 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype,
541 return pf->prim_i2c(pval, cout, putype, it);
546 if (*pval == NULL)
552 strtmp = (ASN1_STRING *)*pval;
558 typ = (ASN1_TYPE *)*pval;
561 pval = (const ASN1_VALUE **)&typ->value.asn1_value; /* actually is const */
567 otmp = (ASN1_OBJECT *)*pval;
580 tbool = (ASN1_BOOLEAN *)pval;
598 return ossl_i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
606 return ossl_i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval, cout ? &cout : NULL);
626 strtmp = (ASN1_STRING *)*pval;