PEM_WRITE_BIO_CMS_STREAM(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

πŸ’… PEM_WRITE_BIO_CMS_STREAM πŸ’…

okay bestie, welcome to PEM_write_bio_CMS_stream, from the 3ossl manual β€” this one's a little OpenSSL icon and it's genuinely not that deep, so let's get into it 🫢


✨ NAME ✨

PEM_write_bio_CMS_stream β€” the girlies are outputting a CMS_ContentInfo structure in PEM format πŸ’–


πŸŽ€ 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() literally just outputs a CMS_ContentInfo structure in PEM format. that's the whole vibe. no cap.

other than that? it's identical to the function SMIME_write_CMS(). like, identical identical, bestie β€” same energy, different name πŸ’…


πŸ¦‹ NOTES πŸ¦‹

it's giving "PEM_write_bio_CMS() but with streaming support," fr fr. effectively that's exactly what it is ✨


⭐ RETURN VALUES ⭐

  • 1 β€” success, ate, slayed, periodt πŸ‘‘
  • 0 β€” failure, and we don't talk about it 😭

πŸ”₯ SEE ALSO πŸ”₯

iykyk 🌈


🌸 HISTORY 🌸

the PEM_write_bio_CMS_stream() function was added in OpenSSL 1.0.0 β€” a real main character origin story tbh πŸŽ€


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 that's the whole page, you understood it perfectly, I'm so proud of you πŸ₯ΉπŸ’– this lil drop is from OpenSSL 3.5.6, dated 2026-04-07 β€” see you in the next 3ossl page, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from