PEM_WRITE_BIO_CMS_STREAM(3SSL)
β¨ PEM_WRITE_BIO_CMS_STREAM β¨
okay bestie, welcome to the OpenSSL manual, section 3SSL π this one's a lil function that lives in the OpenSSL crew and it's here to help you yeet a CMS_ContentInfo structure out into the world in PEM format. literally so iconic of it.
πΈ NAME πΈ
PEM_write_bio_CMS_stream β output CMS_ContentInfo structure in PEM format π
that's the whole job. it takes your CMS thingy and streams it out as PEM. no cap.
π¦ SYNOPSIS π¦
#include <openssl/cms.h>
int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *data, int flags);
yep, that's the whole vibe. four args, one int back. she's simple like that π
π DESCRIPTION π
PEM_write_bio_CMS_stream() outputs a CMS_ContentInfo structure in PEM format β¨
and other than that? bestie, it's otherwise identical to the function SMIME_write_CMS(). same energy, same behaviour, just this name. periodt.
π§ NOTES π§
this function is effectively a version of PEM_write_bio_CMS() that supports streaming π so if you were sitting there like "hmm I wish PEM_write_bio_CMS() could stream," boom, here she is. iykyk.
π RETURN VALUES π
1β slay π success, we ate0β not slay π failure, go checkERR_get_error(3)probably
π SEE ALSO π
go read these too, they're all part of the fam π«Ά
ERR_get_error(3)CMS_sign(3)CMS_verify(3)CMS_encrypt(3)CMS_decrypt(3)PEM_write(3)SMIME_write_CMS(3)i2d_CMS_bio_stream(3)
π HISTORY π
the PEM_write_bio_CMS_stream() function was added in OpenSSL 1.0.0 β so she's been around a minute. a real main character from day one.
π 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>.
bestie this is version 4.0.3, dated 2026-09-29, straight from the OpenSSL manual page PEM_WRITE_BIO_CMS_STREAM(3SSL) β go stream something pretty π
β¨
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms