Home | History | Annotate | Download | only in asn1

Lines Matching refs:it

10  * apply to all code found in this distribution, be it the RC4, RSA,
69 const ASN1_ITEM *it, int tag, int aclass);
76 const ASN1_ITEM *it, int flags);
84 const ASN1_ITEM *it)
86 return asn1_item_flags_i2d(val, out, it, ASN1_TFLG_NDEF);
89 int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it)
91 return asn1_item_flags_i2d(val, out, it, 0);
102 const ASN1_ITEM *it, int flags)
107 len = ASN1_item_ex_i2d(&val, NULL, it, -1, flags);
114 ASN1_item_ex_i2d(&val, &p, it, -1, flags);
119 return ASN1_item_ex_i2d(&val, out, it, -1, flags);
124 * performs the normal item handling: it can be used in external types.
128 const ASN1_ITEM *it, int tag, int aclass)
135 const ASN1_AUX *aux = it->funcs;
138 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
144 switch (it->itype) {
147 if (it->templates)
148 return asn1_template_ex_i2d(pval, out, it->templates,
150 return asn1_i2d_ex_primitive(pval, out, it, tag, aclass);
154 return asn1_i2d_ex_primitive(pval, out, it, -1, aclass);
157 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
159 i = asn1_get_choice_selector(pval, it);
160 if ((i >= 0) && (i < it->tcount)) {
163 chtt = it->templates + i;
168 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
173 /* If new style i2d it does all the work */
174 ef = it->funcs;
175 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
179 cf = it->funcs;
198 i = asn1_enc_restore(&seqcontlen, out, pval, it);
214 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it, NULL))
217 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
236 for (i = 0, tt = it->templates; i < it->tcount; tt++, i++) {
248 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it, NULL))
298 /* if template and arguments require ndef, use it */
485 const ASN1_ITEM *it, int tag, int aclass)
492 utype = it->utype;
498 len = asn1_ex_i2c(pval, NULL, &utype, it);
530 asn1_ex_i2c(pval, *out, &utype, it);
545 const ASN1_ITEM *it)
555 pf = it->funcs;
557 return pf->prim_i2c(pval, cout, putype, it);
560 if ((it->itype != ASN1_ITYPE_PRIMITIVE)
561 || (it->utype != V_ASN1_BOOLEAN)) {
566 if (it->itype == ASN1_ITYPE_MSTRING) {
571 } else if (it->utype == V_ASN1_ANY) {
597 if (it->utype != V_ASN1_ANY) {
601 if (*tbool && (it->size > 0))
603 if (!*tbool && !it->size)
644 if ((it->size == ASN1_TFLG_NDEF)