I2D_CMS_BIO_STREAM(3ossl)
β¨ NAME β¨
ok so i2d_CMS_bio_stream β it outputs a CMS_ContentInfo structure in BER format π
that's the whole vibe, bestie.
πΈ SYNOPSIS πΈ
#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 π
and like,, that's literally it for the differences β otherwise it's identical to SMIME_write_CMS(). same energy, different name, iykyk π«Ά
π¦ NOTES π¦
so this function is effectively a version of i2d_CMS_bio() that supports streaming β¨ like it's the same thing but it can go with the flow, no cap.
π BUGS π
ok so the prefix "i2d" is arguably wrong π because the function outputs BER format. like,, the name is giving misleading, not gonna lie. it's iconic of them tho π
β RETURN VALUES β
1β success, slay π0β failure, we don't talk about it π
π SEE ALSO π
ERR_get_error(3)CMS_sign(3)CMS_verify(3)CMS_encrypt(3)CMS_decrypt(3)SMIME_write_CMS(3)PEM_write_bio_CMS_stream(3)
π HISTORY π
i2d_CMS_bio_stream() was added in OpenSSL 1.0.0 β a true OG, been here since forever π
π COPYRIGHT π
Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
ok that's the whole page bestie, go forth and stream your CMS structures π§ββοΈπ« this was I2D_CMS_BIO_STREAM(3ossl) from OpenSSL 3.5.0, dated 2026-09-25 β mwah, ily, bye ππ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms