Lines Matching defs:pval

67 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
73 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
130 int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
141 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
152 return asn1_template_ex_i2d(pval, out, it->templates,
154 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
158 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
161 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
163 i = asn1_get_choice_selector(pval, it);
169 pchval = asn1_get_field_ptr(pval, chtt);
174 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
181 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
188 i = cf->asn1_i2d(*pval, out);
202 i = asn1_enc_restore(&seqcontlen, out, pval, it);
219 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
226 seqtt = asn1_do_adb(pval, tt, 1);
229 pseqval = asn1_get_field_ptr(pval, seqtt);
244 seqtt = asn1_do_adb(pval, tt, 1);
247 pseqval = asn1_get_field_ptr(pval, seqtt);
253 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
264 int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
267 return asn1_template_ex_i2d(pval, out, tt, -1, 0);
270 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
320 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
325 if (!*pval)
394 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item),
404 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
413 return ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
504 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
518 len = asn1_ex_i2c(pval, NULL, &utype, it);
551 asn1_ex_i2c(pval, *out, &utype, it);
565 int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
578 return pf->prim_i2c(pval, cout, putype, it);
584 if (!*pval) return -1;
590 strtmp = (ASN1_STRING *)*pval;
598 typ = (ASN1_TYPE *)*pval;
601 pval = &typ->value.asn1_value;
608 otmp = (ASN1_OBJECT *)*pval;
619 tbool = (ASN1_BOOLEAN *)pval;
636 return i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
647 return i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval,
669 strtmp = (ASN1_STRING *)*pval;