Lines Matching defs:out
43 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags,
69 int i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,
77 bio = BIO_new_NDEF(out, val, it);
92 } while (bio != out);
95 * else just write out ASN1 structure which will have all content stored
99 ASN1_item_i2d_bio(it, out, val);
105 static int B64_write_ASN1(BIO *out, ASN1_VALUE *val, BIO *in, int flags,
118 out = BIO_push(b64, out);
119 r = i2d_ASN1_bio_stream(out, val, in, flags, it);
120 (void)BIO_flush(out);
121 BIO_pop(out);
128 int PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,
132 BIO_printf(out, "-----BEGIN %s-----\n", hdr);
133 r = B64_write_ASN1(out, val, in, flags, it);
134 BIO_printf(out, "-----END %s-----\n", hdr);
160 static int asn1_write_micalg(BIO *out, STACK_OF(X509_ALGOR) *mdalgs)
168 BIO_write(out, ",", 1);
177 BIO_puts(out, micstr);
186 BIO_puts(out, "sha1");
190 BIO_puts(out, "md5");
194 BIO_puts(out, "sha-256");
198 BIO_puts(out, "sha-384");
202 BIO_puts(out, "sha-512");
206 BIO_puts(out, "gostr3411-94");
210 BIO_puts(out, "gostr3411-2012-256");
214 BIO_puts(out, "gostr3411-2012-512");
221 BIO_puts(out, "unknown");
280 /* Now write out the first part */
341 static int asn1_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags,
354 return SMIME_crlf_copy(data, out, flags);
362 sarg.out = out;
381 while (sarg.ndef_bio != out) {
512 int SMIME_crlf_copy(BIO *in, BIO *out, int flags)
528 out = BIO_push(bf, out);
531 BIO_write(out, linebuf, len);
535 BIO_printf(out, "Content-Type: text/plain\r\n\r\n");
539 /* Not EOF: write out all CRLF */
543 BIO_write(out, "\r\n", 2);
546 BIO_write(out, linebuf, len);
548 BIO_write(out, "\r\n", 2);
552 BIO_write(out, "\r\n", 2);
556 ret = BIO_flush(out);
557 BIO_pop(out);
566 int SMIME_text(BIO *in, BIO *out)
591 BIO_write(out, iobuf, len);