I2D_PKCS7_BIO_STREAM(3SSL)
π I2D_PKCS7_BIO_STREAM π
okay bestie, gather round, because this is the i2d_PKCS7_bio_stream page from the OpenSSL manual (it lives in section 3SSL, iykyk), and she's a tiny little function with a BIG personality problem that we will get into. β¨
β¨ NAME β¨
i2d_PKCS7_bio_stream β dump out a PKCS7 structure in BER format π
πΈ SYNOPSIS πΈ
#include <openssl/pkcs7.h>
int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *data, int flags);
π DESCRIPTION π
So i2d_PKCS7_bio_stream() does one thing and does it well: it outputs a PKCS7 structure in BER format. that's the whole gig. π
Other than that? She is literally identical to SMIME_write_PKCS7(). same energy, different name. no cap.
π¦ NOTES π¦
This function is effectively a version of d2i_PKCS7_bio() that supports streaming. so if you were sitting there like "wait, isn't this kinda just that other one?" β yes bestie, you clocked it fr fr. π«Ά
π BUGS π
the prefix i2d is arguably wrong, because this function outputs BER format. so she's out here with a name that lowkey lies about what she does. iconic behaviour honestly. not me defending it. π
π RETURN VALUES π
1β success, we ate π0β failure, it's giving flop π
i2d_PKCS7_bio_stream() returns one of those two. that's it, that's the range.
β SEE ALSO β
go read these next, bestie, they're all part of the same friend group:
ERR_get_error(3)PKCS7_sign(3)PKCS7_verify(3)PKCS7_encrypt(3)PKCS7_decrypt(3)SMIME_write_PKCS7(3)PEM_write_bio_PKCS7_stream(3)
π HISTORY π
i2d_PKCS7_bio_stream() was added in OpenSSL 1.0.0. so she's been here for a minute, she's a legacy queen. β
π 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're officially educated π this was OpenSSL 4.0.3, dated 2026-09-29, and yes the header said I2D_PKCS7_BIO_STREAM(3SSL) the whole time. go forth and stream your BER, bestie, mwah π«Άβ¨π
π¦ 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