Home | History | Annotate | Download | only in asn1

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