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