BIO_F_PREFIX(3ossl)
π BIO_F_PREFIX β the prefix BIO filter, bestie edition π
okay so this is an OpenSSL page (3ossl), and it's all about a little filter that makes your text output look cute and organized. get comfy, we're doing this together π«Ά
β¨ NAME β¨
BIO_f_prefix, BIO_set_prefix, BIO_set_indent, BIO_get_indent β it's the prefix BIO filter, and it's literally here to indent your lines for you π
πΈ SYNOPSIS πΈ
#include <openssl/bio.h>
const BIO_METHOD *BIO_f_prefix(void);
long BIO_set_prefix(BIO *b, const char *prefix);
long BIO_set_indent(BIO *b, long indent);
long BIO_get_indent(BIO *b);
π¦ DESCRIPTION π¦
So BIO_f_cipher() returns the prefix BIO method. (yes that's what the page says, no I'm not fixing it, that's the text, periodt π) It's a filter for text output, and the whole vibe is that every line gets automatically prefixed and indented based on whatever the user asked for. main character energy for your strings β¨
The prefix and the indentation are combined. For each line of output going through this filter, here's the order, no cap:
- the prefix gets output first
- then the amount of additional spaces indicated by the indentation
- then the line itself π
By default, there is no prefix, and indentation is set to 0. clean slate energy.
BIO_set_prefix()β sets the prefix to be used for future lines of text, usingprefix.prefixmay beNULL, which signifies that there should be no prefix. Ifprefixisn'tNULL, this function makes a copy of it (so it's yours now, it's safe, don't stress π).BIO_set_indent()β sets the indentation to be used for future lines of text, usingindent. Negative values are not allowed. π«BIO_get_indent()β gets the current indentation. peek at it, you deserve to know π
π NOTES π
BIO_set_prefix(), BIO_set_indent() and BIO_get_indent() are implemented as macros. iykyk, that's just how they are π§
β RETURN VALUES β
BIO_f_prefix()returns the prefix BIO method. that's the whole thing, she's serving πBIO_set_prefix()returns1if the prefix was correctly set, or<=0on failure.BIO_set_indent()returns1if the prefix was correctly set, or<=0on failure.BIO_get_indent()returns the current indentation, or a negative value for failure.
bestie listen:<=0means failure.1means slay. don't get it twisted π
π SEE ALSO π
bio(7)β go read it, it's the lore π
π COPYRIGHT π
Copyright 2019 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>.
aaaand that's the whole page, bestie π this was OpenSSL 3ossl, version 3.5.9, dated 2026-09-29 β mwah, go forth and prefix your lines, you absolute icon ππ
β¨
π¦ 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