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()returns1for success β¨- or
0for failure π
that's it. binary. she doesn't do nuance. (ngl a little iconic of her.)
π SEE ALSO π
go read these too, iykyk:
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)
(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 π
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
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms