Lines Matching refs:pval
65 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
71 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
128 int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
139 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
150 return asn1_template_ex_i2d(pval, out, it->templates,
152 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
156 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
159 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
161 i = asn1_get_choice_selector(pval, it);
167 pchval = asn1_get_field_ptr(pval, chtt);
172 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
179 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
186 i = cf->asn1_i2d(*pval, out);
200 i = asn1_enc_restore(&seqcontlen, out, pval, it);
217 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
224 seqtt = asn1_do_adb(pval, tt, 1);
227 pseqval = asn1_get_field_ptr(pval, seqtt);
242 seqtt = asn1_do_adb(pval, tt, 1);
245 pseqval = asn1_get_field_ptr(pval, seqtt);
251 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
262 int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
265 return asn1_template_ex_i2d(pval, out, tt, -1, 0);
268 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
319 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
324 if (!*pval)
393 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item),
403 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
412 return ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
508 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
522 len = asn1_ex_i2c(pval, NULL, &utype, it);
555 asn1_ex_i2c(pval, *out, &utype, it);
569 int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
582 return pf->prim_i2c(pval, cout, putype, it);
588 if (!*pval) return -1;
594 strtmp = (ASN1_STRING *)*pval;
602 typ = (ASN1_TYPE *)*pval;
605 pval = &typ->value.asn1_value;
612 otmp = (ASN1_OBJECT *)*pval;
623 tbool = (ASN1_BOOLEAN *)pval;
640 return i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
651 return i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval,
673 strtmp = (ASN1_STRING *)*pval;