[#PEM_write_bio_ASN1_stream] = PEM_write_bio_ASN1_stream :mrdocs: Stream‐encode an ASN.1 value as a PEM object, optionally pulling content from `in.` == Synopsis Declared in `<openssl/asn1.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PEM_write_bio_ASN1_stream( xref:BIO.adoc[BIO]* out, xref:ASN1_VALUE.adoc[ASN1_VALUE]* val, xref:BIO.adoc[BIO]* in, int flags, char const* hdr, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *out* | BIO that receives the PEM output. | *val* | ASN.1 value to encode (not const because streaming may update state). | *in* | Optional content BIO for indefinite‐length / streaming payloads, or NULL. | *flags* | SMIME/CMS streaming flags (for example SMIME_STREAM). | *hdr* | PEM header label such as "CMS" or "PKCS7" (without BEGIN/END). | *it* | ASN.1 item descriptor for `val.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#