Stream‐encode an ASN.1 value as a PEM object, optionally pulling content from in.
Synopsis
Declared in <openssl/asn1.h>
int
PEM_write_bio_ASN1_stream(
BIO* out,
ASN1_VALUE* val,
BIO* in,
int flags,
char const* hdr,
ASN1_ITEM const* it);
Return Value
1 on success, or 0 on failure.
Parameters
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 |
Created with MrDocs