PEM_WRITE_BIO_CMS_STREAM(3ossl)

πŸ’– PEM_WRITE_BIO_CMS_STREAM πŸ’–

okay bestie, so this is the PEM_write_bio_CMS_stream(3ossl) page from the OpenSSL manual, and it's honestly kinda short but it's giving extremely specific niche tool energy and we're obsessed. let's get into it πŸŽ€


✨ NAME ✨

PEM_write_bio_CMS_stream β€” output CMS_ContentInfo structure in PEM format πŸ¦‹

like. that's the whole thing. she does one job and she does it well. periodt.


🌸 SYNOPSIS 🌸

#include <openssl/cms.h>

int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);

πŸ’… DESCRIPTION πŸ’…

so PEM_write_bio_CMS_stream() outputs a CMS_ContentInfo structure in PEM format. that's the vibe. πŸ’–

and like, otherwise? it's identical to the function SMIME_write_CMS(). no cap. literally the same behaviour, it's just wearing a different name tag. πŸ™ˆ


πŸ”₯ NOTES πŸ”₯

this function is effectively a version of PEM_write_bio_CMS() that supports streaming. so if you were like "hmm I want the PEM write but make it streaming", congrats, this is her. she ate. πŸ‘‘


⭐ RETURN VALUES ⭐

  • PEM_write_bio_CMS_stream() returns 1 for success ✨
  • or 0 for failure πŸ’€

that's it. binary. she doesn't do nuance. (ngl a little iconic of her.)


🌈 SEE ALSO 🌈

go read these too, iykyk:

(also lowkey note that the original page lists CMS_decrypt(3) right after CMS_encrypt(3) on the same line β€” so yeah, they're all one big friend group 🫢)


🧚 HISTORY 🧚

the PEM_write_bio_CMS_stream() function was added in OpenSSL 1.0.0. so she's been around a minute. vintage but not vintage vintage. πŸ’œ


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>.

okay so real talk: that license bit means don't just yolo with this file, read the License first. not me being your legal bestie but here we are 🫢

and that's the whole page bestie!! πŸ’–βœ¨ this was 3.5.9, dated 2026-09-29, straight from the OpenSSL manual. slay, go stream some CMS structures responsibly πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from