• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/OpenSSH-186/osslshim/ossl-asn1/

Lines Matching defs:?f

12  * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
16 * notice, this list of conditions and the following disclaimer in
20 * 3. All advertising materials mentioning features or use of this
32 * permission of the OpenSSL Project.
34 * 6. Redistributions of any form whatsoever must retain the following
66 #if 0
108 * The new i2d has one additional feature. If the output
116 if (out && !*out)
121 if (len <= 0)
124 if (!buf)
135 /* Encode an item, taking care of IMPLICIT tagging (if any).
146 const ASN1_COMPAT_FUNCS *cf;
147 const ASN1_EXTERN_FUNCS *ef;
151 if ((it->itype != ASN1_ITYPE_PRIMITIVE) && !*pval)
154 if (aux && aux->asn1_cb)
161 if (it->templates)
171 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it))
174 if ((i >= 0) && (i < it->tcount))
183 /* Fixme: error condition if selector out of range */
184 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it))
189 /* If new style i2d it does all the work */
190 ef = it->funcs;
191 return ef->asn1_ex_i2d(pval, out, it, tag, aclass);
195 cf = it->funcs;
196 if (out)
198 i = cf->asn1_i2d(*pval, out);
202 if (out && (tag != -1))
207 /* Use indefinite length constructed if requested */
208 if (aclass & ASN1_TFLG_NDEF) ndef = 2;
214 if (i < 0)
217 if (i > 0)
221 /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
222 if (tag == -1)
229 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_PRE, pval, it))
237 if (!seqtt)
246 if (!out)
255 if (!seqtt)
261 if (ndef == 2)
263 if (asn1_cb && !asn1_cb(ASN1_OP_I2D_POST, pval, it))
291 if (flags & ASN1_TFLG_TAG_MASK)
293 /* Error if argument and template tagging */
294 if (tag != -1)
301 else if (tag != -1)
322 /* if template and arguments require ndef, use it */
323 if ((flags & ASN1_TFLG_NDEF) && (iclass & ASN1_TFLG_NDEF))
327 if (flags & ASN1_TFLG_SK_MASK)
335 if (!*pval)
338 if (flags & ASN1_TFLG_SET_OF)
342 if (flags & ASN1_TFLG_SEQUENCE_OF)
347 /* Work out inner tag value: if EXPLICIT
350 if ((ttag != -1) && !(flags & ASN1_TFLG_EXPTAG))
358 if (isset)
363 /* Determine total length of items */
373 /* If EXPLICIT need length of surrounding tag */
374 if (flags & ASN1_TFLG_EXPTAG)
378 if (!out)
383 if (flags & ASN1_TFLG_EXPTAG)
390 if (ndef == 2)
393 if (flags & ASN1_TFLG_EXPTAG)
400 if (flags & ASN1_TFLG_EXPTAG)
403 /* Find length of tagged item */
406 if (!i)
408 /* Find length of EXPLICIT tag */
410 if (out)
416 if (ndef == 2)
428 /* Temporary structure used to hold DER encoding of items for SET OF */
442 if (i)
447 /* Output the content octets of SET OF or SEQUENCE OF */
457 if (do_sort)
460 if (sk_ASN1_VALUE_num(sk) < 2)
467 if (!derlst || !tmpdat)
471 /* If not sorting just output each item */
472 if (!do_sort)
483 /* Doing sort: build up a list of each member's DER encoding */
502 /* If do_sort is 2 then reorder the STACK */
503 if (do_sort == 2)
524 /* Get length of content octets and maybe find
530 /* If SEQUENCE, SET or OTHER then header is
536 if ((utype == V_ASN1_SEQUENCE) || (utype == V_ASN1_SET) ||
543 if (len == -1)
547 if (len == -2)
553 /* If not implicitly tagged get tag from underlying type */
554 if (tag == -1) tag = utype;
557 if (out)
559 if (usetag)
562 if (ndef)
568 if (usetag)
584 const ASN1_PRIMITIVE_FUNCS *pf;
585 pf = it->funcs;
586 if (pf && pf->prim_i2c)
587 return pf->prim_i2c(pval, cout, putype, it);
590 if ((it->itype != ASN1_ITYPE_PRIMITIVE)
593 if (!*pval) return -1;
596 if (it->itype == ASN1_ITYPE_MSTRING)
598 /* If MSTRING type set the underlying type */
603 else if (it->utype == V_ASN1_ANY)
605 /* If ANY set type and pointer to value */
629 if (*tbool == -1)
631 if (it->utype != V_ASN1_ANY)
633 /* Default handling if value == size field then omit */
634 if (*tbool && (it->size > 0))
636 if (!*tbool && !it->size)
680 if ((it->size == ASN1_TFLG_NDEF)
683 if (cout)
697 if (cout && len)