PEM_WRITE_BIO_CMS_STREAM(3ossl)
π 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 π₯
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)
iykyk π
πΈ HISTORY πΈ
the PEM_write_bio_CMS_stream() function was added in OpenSSL 1.0.0 β a real main character origin story tbh π
π 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 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
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms