Lines Matching refs:flags

43 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags,
57 static int multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret);
58 static int strip_eol(char *linebuf, int *plen, int flags);
69 int i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in i2d_ASN1_bio_stream() argument
75 if (flags & SMIME_STREAM) { in i2d_ASN1_bio_stream()
82 if (!SMIME_crlf_copy(in, bio, flags)) { in i2d_ASN1_bio_stream()
105 static int B64_write_ASN1(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in B64_write_ASN1() argument
119 r = i2d_ASN1_bio_stream(out, val, in, flags, it); in B64_write_ASN1()
128 int PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags, in PEM_write_bio_ASN1_stream() argument
133 r = B64_write_ASN1(out, val, in, flags, it); in PEM_write_bio_ASN1_stream()
238 int SMIME_write_ASN1_ex(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, in SMIME_write_ASN1_ex() argument
248 if (flags & SMIME_OLDMIME) in SMIME_write_ASN1_ex()
253 if (flags & SMIME_CRLFEOL) in SMIME_write_ASN1_ex()
257 if ((flags & SMIME_DETACHED) && data) { in SMIME_write_ASN1_ex()
282 if (!asn1_output_data(bio, data, val, flags, it)) in SMIME_write_ASN1_ex()
326 if (!B64_write_ASN1(bio, val, data, flags, it)) in SMIME_write_ASN1_ex()
332 int SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, in SMIME_write_ASN1() argument
336 return SMIME_write_ASN1_ex(bio, val, data, flags, ctype_nid, econt_nid, in SMIME_write_ASN1()
343 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags, in asn1_output_data() argument
355 if (!(flags & SMIME_DETACHED) || (flags & PKCS7_REUSE_DIGEST)) { in asn1_output_data()
356 return SMIME_crlf_copy(data, out, flags); in asn1_output_data()
374 if (!SMIME_crlf_copy(data, sarg.ndef_bio, flags)) in asn1_output_data()
399 ASN1_VALUE *SMIME_read_ASN1_ex(BIO *bio, int flags, BIO **bcont, in SMIME_read_ASN1_ex() argument
436 ret = multi_split(bio, flags, prm->param_value, &parts); in SMIME_read_ASN1_ex()
514 int SMIME_crlf_copy(BIO *in, BIO *out, int flags) in SMIME_crlf_copy() argument
537 if (flags & SMIME_BINARY) { in SMIME_crlf_copy()
542 if (flags & SMIME_TEXT) in SMIME_crlf_copy()
545 eol = strip_eol(linebuf, &len, flags); in SMIME_crlf_copy()
548 if (flags & SMIME_ASCIICRLF) { in SMIME_crlf_copy()
557 } else if (flags & SMIME_ASCIICRLF) { in SMIME_crlf_copy()
610 static int multi_split(BIO *bio, int flags, const char *bound, STACK_OF(BIO) **ret) in multi_split() argument
640 next_eol = strip_eol(linebuf, &len, flags); in multi_split()
655 (flags & CMS_BINARY) == 0 in multi_split()
659 || (flags & SMIME_CRLFEOL) != 0) in multi_split()
1005 static int strip_eol(char *linebuf, int *plen, int flags) in strip_eol() argument
1012 if ((flags & CMS_BINARY) != 0) { in strip_eol()
1015 if ((flags & SMIME_CRLFEOL) != 0) { in strip_eol()
1030 } else if (is_eol && (flags & SMIME_ASCIICRLF) != 0 && c == 32) { in strip_eol()