I2D_CMS_BIO_STREAM(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

✨ 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 🌈


πŸŽ€ HISTORY πŸŽ€

i2d_CMS_bio_stream() was added in OpenSSL 1.0.0 β€” a true OG, been here since forever πŸ‘‘


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