• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/openssl-0.9.8e/crypto/asn1/

Lines Matching refs: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))
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))
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))
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))
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,
577 return pf->prim_i2c(pval, cout, putype, it);
583 if (!*pval) return -1;
589 strtmp = (ASN1_STRING *)*pval;
597 typ = (ASN1_TYPE *)*pval;
600 pval = (ASN1_VALUE **)&typ->value.ptr;
607 otmp = (ASN1_OBJECT *)*pval;
618 tbool = (ASN1_BOOLEAN *)pval;
635 return i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
646 return i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval,
668 strtmp = (ASN1_STRING *)*pval;