I2D_CMS_BIO_STREAM(3)
π i2d_CMS_bio_stream π
okay so bestie, this is the i2d_CMS_bio_stream page from the libcrypto Library Functions Manual β yes, that one. Letβs get into it π
.
β¨ NAME β¨
i2d_CMS_bio_stream β output CMS_ContentInfo structure in BER format.
π¦ SYNOPSIS π¦
library βlibcryptoβ #include <openssl/cms.h>
int
i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *data,
int flags);
πΈ DESCRIPTION πΈ
i2d_CMS_bio_stream() outputs a CMS_ContentInfo structure in BER format. Thatβs the whole main character move.
Other than that, it is literally identical to the function SMIME_write_CMS(3). No cap.
Think of it as a version of i2d_CMS_bio(3) that supports streaming β itβs giving the same energy, just with stream support in the mix β¨.
π RETURN VALUES π
i2d_CMS_bio_stream() returns 1 for success or 0 for failure. Thatβs it, bestie β success slay or failure era, no in-between π«Ά.
β SEE ALSO β
CMS_ContentInfo_new(3)CMS_encrypt(3)CMS_sign(3)ERR_get_error(3)PEM_write_bio_CMS_stream(3)SMIME_write_CMS(3)
π§ HISTORY π§
i2d_CMS_bio_stream() first appeared in OpenSSL 1.0.0 and has been available since OpenBSD 6.7. Itβs been around, okay π
.
π BUGS π
The prefix "i2d" is arguably wrong because the function outputs BER format.
Not me pointing out the naming situation, but here we are π.
π this page is from Debian, dated June 8, 2025 β byeee bestie π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2008 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms