Lines Matching refs:pval

89 static int asn1_template_ex_d2i(ASN1_VALUE **pval,
97 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
145 ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **pval,
151 if (!pval)
152 pval = &ptmpval;
154 if (ASN1_item_ex_d2i(pval, in, len, it, -1, 0, 0, &c) > 0)
155 return *pval;
159 int ASN1_template_d2i(ASN1_VALUE **pval,
165 return asn1_template_ex_d2i(pval, in, len, tt, 0, &c, 0);
172 static int asn1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in,
192 if (!pval)
218 return asn1_template_ex_d2i(pval, in, len,
221 return asn1_d2i_ex_primitive(pval, in, len, it,
261 return asn1_d2i_ex_primitive(pval, in, len, it, otag, 0, 0, ctx);
266 return ef->asn1_ex_d2i(pval, in, len, it, tag, aclass, opt, ctx);
317 ptmpval = cf->asn1_d2i(pval, in, len);
338 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL))
340 if (*pval) {
342 i = asn1_get_choice_selector(pval, it);
345 pchptr = asn1_get_field_ptr(pval, tt);
347 asn1_set_choice_selector(pval, -1, it);
349 } else if (!ASN1_item_ex_new(pval, it)) {
356 pchptr = asn1_get_field_ptr(pval, tt);
378 ASN1_item_ex_free(pval, it);
385 asn1_set_choice_selector(pval, i, it);
386 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL))
421 if (!*pval && !ASN1_item_ex_new(pval, it)) {
426 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_PRE, pval, it, NULL))
434 seqtt = asn1_do_adb(pval, tt, 0);
437 pseqval = asn1_get_field_ptr(pval, seqtt);
446 seqtt = asn1_do_adb(pval, tt, 1);
449 pseqval = asn1_get_field_ptr(pval, seqtt);
512 seqtt = asn1_do_adb(pval, tt, 1);
517 pseqval = asn1_get_field_ptr(pval, seqtt);
526 if (!asn1_enc_save(pval, *in, p - *in, it))
528 if (asn1_cb && !asn1_cb(ASN1_OP_D2I_POST, pval, it, NULL))
540 ASN1_item_ex_free(pval, it);
549 int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,
553 return asn1_item_ex_d2i(pval, in, len, it, tag, aclass, opt, ctx, 0);
753 static int asn1_d2i_ex_primitive(ASN1_VALUE **pval,
765 if (!pval) {
874 if (!asn1_ex_c2i(pval, cont, len, utype, &free_cont, it))
887 int asn1_ex_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,
899 return pf->prim_c2i(pval, cont, len, utype, free_cont, it);
902 if (!*pval) {
906 *pval = (ASN1_VALUE *)typ;
908 typ = (ASN1_TYPE *)*pval;
912 opval = pval;
913 pval = &typ->value.asn1_value;
917 if (!c2i_ASN1_OBJECT((ASN1_OBJECT **)pval, &cont, len))
926 *pval = (ASN1_VALUE *)1;
935 tbool = (ASN1_BOOLEAN *)pval;
941 if (!c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &cont, len))
947 tint = (ASN1_INTEGER **)pval;
982 if (!*pval) {
988 *pval = (ASN1_VALUE *)stmp;
990 stmp = (ASN1_STRING *)*pval;
1004 *pval = NULL;