Home | History | Annotate | Download | only in asn1

Lines Matching refs:pval

68 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,
127 int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
138 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
148 return asn1_template_ex_i2d(pval, out, it->templates,
150 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
154 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
157 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
159 i = asn1_get_choice_selector(pval, it);
164 pchval = asn1_get_field_ptr(pval, chtt);
168 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
175 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
182 i = cf->asn1_i2d(*pval, out);
198 i = asn1_enc_restore(&seqcontlen, out, pval, it);
214 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
221 seqtt = asn1_do_adb(pval, tt, 1);
224 pseqval = asn1_get_field_ptr(pval, seqtt);
239 seqtt = asn1_do_adb(pval, tt, 1);
242 pseqval = asn1_get_field_ptr(pval, seqtt);
248 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
259 int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
262 return asn1_template_ex_i2d(pval, out, tt, -1, 0);
265 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
312 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
317 if (!*pval)
387 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), -1, iclass);
395 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), -1, iclass);
403 return ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
490 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
504 len = asn1_ex_i2c(pval, NULL, &utype, it);
536 asn1_ex_i2c(pval, *out, &utype, it);
550 int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
563 return pf->prim_i2c(pval, cout, putype, it);
568 if (!*pval)
574 strtmp = (ASN1_STRING *)*pval;
580 typ = (ASN1_TYPE *)*pval;
583 pval = &typ->value.asn1_value;
589 otmp = (ASN1_OBJECT *)*pval;
600 tbool = (ASN1_BOOLEAN *)pval;
618 return i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
627 return i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval, cout ? &cout : NULL);
648 strtmp = (ASN1_STRING *)*pval;