Lines Matching refs:pval
83 static int asn1_template_ex_d2i(ASN1_VALUE **pval,
91 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
129 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval, in ASN1_item_d2i() argument
134 if (!pval) in ASN1_item_d2i()
135 pval = &ptmpval; in ASN1_item_d2i()
137 if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0) in ASN1_item_d2i()
138 return *pval; in ASN1_item_d2i()
142 int ASN1_template_d2i(ASN1_VALUE **pval, in ASN1_template_d2i() argument
147 return asn1_template_ex_d2i(pval, in, len, tt, 0, &c); in ASN1_template_d2i()
155 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, in ASN1_item_ex_d2i() argument
173 if (!pval) in ASN1_item_ex_d2i()
195 return asn1_template_ex_d2i(pval, in, len, in ASN1_item_ex_d2i()
198 return asn1_d2i_ex_primitive(pval, in, len, it, in ASN1_item_ex_d2i()
230 return asn1_d2i_ex_primitive(pval, in, len, in ASN1_item_ex_d2i()
236 return ef->asn1_ex_d2i(pval, in, len, in ASN1_item_ex_d2i()
293 ptmpval = cf->asn1_d2i(pval, in, len); in ASN1_item_ex_d2i()
306 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL)) in ASN1_item_ex_d2i()
309 if (*pval) in ASN1_item_ex_d2i()
312 i = asn1_get_choice_selector(pval, it); in ASN1_item_ex_d2i()
316 pchptr = asn1_get_field_ptr(pval, tt); in ASN1_item_ex_d2i()
318 asn1_set_choice_selector(pval, -1, it); in ASN1_item_ex_d2i()
321 else if (!ASN1_item_ex_new(pval, it)) in ASN1_item_ex_d2i()
330 pchptr = asn1_get_field_ptr(pval, tt); in ASN1_item_ex_d2i()
354 ASN1_item_ex_free(pval, it); in ASN1_item_ex_d2i()
361 asn1_set_choice_selector(pval, i, it); in ASN1_item_ex_d2i()
363 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL)) in ASN1_item_ex_d2i()
401 if (!*pval && !ASN1_item_ex_new(pval, it)) in ASN1_item_ex_d2i()
407 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL)) in ASN1_item_ex_d2i()
417 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_d2i()
418 pseqval = asn1_get_field_ptr(pval, seqtt); in ASN1_item_ex_d2i()
428 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_d2i()
431 pseqval = asn1_get_field_ptr(pval, seqtt); in ASN1_item_ex_d2i()
499 seqtt = asn1_do_adb(pval, tt, 1); in ASN1_item_ex_d2i()
505 pseqval = asn1_get_field_ptr(pval, seqtt); in ASN1_item_ex_d2i()
516 if (!asn1_enc_save(pval, *in, p - *in, it)) in ASN1_item_ex_d2i()
519 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL)) in ASN1_item_ex_d2i()
529 ASN1_item_ex_free(pval, it); in ASN1_item_ex_d2i()
763 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval, in asn1_d2i_ex_primitive() argument
776 if (!pval) in asn1_d2i_ex_primitive()
910 if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it)) in asn1_d2i_ex_primitive()
922 int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len, in asn1_ex_c2i() argument
934 return pf->prim_c2i(pval, cont, len, utype, free_cont, it); in asn1_ex_c2i()
938 if (!*pval) in asn1_ex_c2i()
943 *pval = (ASN1_VALUE *)typ; in asn1_ex_c2i()
946 typ = (ASN1_TYPE *)*pval; in asn1_ex_c2i()
950 opval = pval; in asn1_ex_c2i()
951 pval = &typ->value.asn1_value; in asn1_ex_c2i()
956 if (!c2i_ASN1_OBJECT((ASN1_OBJECT **)pval, &cont, len)) in asn1_ex_c2i()
966 *pval = (ASN1_VALUE *)1; in asn1_ex_c2i()
978 tbool = (ASN1_BOOLEAN *)pval; in asn1_ex_c2i()
984 if (!c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &cont, len)) in asn1_ex_c2i()
992 tint = (ASN1_INTEGER **)pval; in asn1_ex_c2i()
1028 if (!*pval) in asn1_ex_c2i()
1036 *pval = (ASN1_VALUE *)stmp; in asn1_ex_c2i()
1040 stmp = (ASN1_STRING *)*pval; in asn1_ex_c2i()
1058 *pval = NULL; in asn1_ex_c2i()