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

Lines Matching refs:pval

67 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
72 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
126 int ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
137 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
147 return asn1_template_ex_i2d(pval, out, it->templates,
149 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
153 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
156 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
158 i = asn1_get_choice_selector(pval, it);
163 pchval = asn1_get_field_ptr(pval, chtt);
167 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
174 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
181 i = cf->asn1_i2d(*pval, out);
197 i = asn1_enc_restore(&seqcontlen, out, pval, it);
213 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
219 seqtt = asn1_do_adb(pval, tt, 1);
222 pseqval = asn1_get_field_ptr(pval, seqtt);
236 seqtt = asn1_do_adb(pval, tt, 1);
239 pseqval = asn1_get_field_ptr(pval, seqtt);
245 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
256 int ASN1_template_i2d(ASN1_VALUE **pval, unsigned char **out,
259 return asn1_template_ex_i2d(pval, out, tt, -1, 0);
262 static int asn1_template_ex_i2d(ASN1_VALUE **pval, unsigned char **out,
308 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval;
313 if (!*pval)
378 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), -1, iclass);
386 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), -1, iclass);
394 return ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item),
481 static int asn1_i2d_ex_primitive(ASN1_VALUE **pval, unsigned char **out,
495 len = asn1_ex_i2c(pval, NULL, &utype, it);
527 asn1_ex_i2c(pval, *out, &utype, it);
541 int asn1_ex_i2c(ASN1_VALUE **pval, unsigned char *cout, int *putype,
554 return pf->prim_i2c(pval, cout, putype, it);
559 if (!*pval)
565 strtmp = (ASN1_STRING *)*pval;
571 typ = (ASN1_TYPE *)*pval;
574 pval = &typ->value.asn1_value;
580 otmp = (ASN1_OBJECT *)*pval;
591 tbool = (ASN1_BOOLEAN *)pval;
609 return i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval,
618 return i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval, cout ? &cout : NULL);
639 strtmp = (ASN1_STRING *)*pval;