Lines Matching refs:pval

19 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out,
25 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out,
29 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype,
81 int ASN1_item_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in ASN1_item_ex_i2d() argument
90 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && *pval == NULL) in ASN1_item_ex_i2d()
102 return asn1_template_ex_i2d(pval, out, it->templates, in ASN1_item_ex_i2d()
104 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
115 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass); in ASN1_item_ex_i2d()
126 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
128 i = ossl_asn1_get_choice_selector_const(pval, it); in ASN1_item_ex_i2d()
133 pchval = ossl_asn1_get_const_field_ptr(pval, chtt); in ASN1_item_ex_i2d()
137 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL)) in ASN1_item_ex_i2d()
144 return ef->asn1_ex_i2d(pval, out, it, tag, aclass); in ASN1_item_ex_i2d()
153 i = ossl_asn1_enc_restore(&seqcontlen, out, pval, it); in ASN1_item_ex_i2d()
169 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL)) in ASN1_item_ex_i2d()
176 seqtt = ossl_asn1_do_adb(*pval, tt, 1); in ASN1_item_ex_i2d()
179 pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt); in ASN1_item_ex_i2d()
194 seqtt = ossl_asn1_do_adb(*pval, tt, 1); in ASN1_item_ex_i2d()
197 pseqval = ossl_asn1_get_const_field_ptr(pval, seqtt); in ASN1_item_ex_i2d()
203 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL)) in ASN1_item_ex_i2d()
214 static int asn1_template_ex_i2d(const ASN1_VALUE **pval, unsigned char **out, in asn1_template_ex_i2d() argument
226 tval = (ASN1_VALUE *)pval; in asn1_template_ex_i2d()
227 pval = &tval; in asn1_template_ex_i2d()
270 STACK_OF(const_ASN1_VALUE) *sk = (STACK_OF(const_ASN1_VALUE) *)*pval; in asn1_template_ex_i2d()
275 if (*pval == NULL) in asn1_template_ex_i2d()
348 i = ASN1_item_ex_i2d(pval, NULL, ASN1_ITEM_ptr(tt->item), -1, iclass); in asn1_template_ex_i2d()
361 ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), -1, iclass); in asn1_template_ex_i2d()
369 len = ASN1_item_ex_i2d(pval, out, ASN1_ITEM_ptr(tt->item), in asn1_template_ex_i2d()
462 static int asn1_i2d_ex_primitive(const ASN1_VALUE **pval, unsigned char **out, in asn1_i2d_ex_primitive() argument
476 len = asn1_ex_i2c(pval, NULL, &utype, it); in asn1_i2d_ex_primitive()
508 asn1_ex_i2c(pval, *out, &utype, it); in asn1_i2d_ex_primitive()
522 static int asn1_ex_i2c(const ASN1_VALUE **pval, unsigned char *cout, int *putype, in asn1_ex_i2c() argument
535 return pf->prim_i2c(pval, cout, putype, it); in asn1_ex_i2c()
540 if (*pval == NULL) in asn1_ex_i2c()
546 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c()
552 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c()
555 pval = (const ASN1_VALUE **)&typ->value.asn1_value; /* actually is const */ in asn1_ex_i2c()
561 otmp = (ASN1_OBJECT *)*pval; in asn1_ex_i2c()
574 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_i2c()
592 return ossl_i2c_ASN1_BIT_STRING((ASN1_BIT_STRING *)*pval, in asn1_ex_i2c()
600 return ossl_i2c_ASN1_INTEGER((ASN1_INTEGER *)*pval, cout ? &cout : NULL); in asn1_ex_i2c()
620 strtmp = (ASN1_STRING *)*pval; in asn1_ex_i2c()