BIO_F_PREFIX(3SSL)
π BIO_F_PREFIX π
okay bestie, so this is the OpenSSL manual page for BIO_F_PREFIX, and it's literally all about making your text output look cute and organized. Prefix filter energy, no cap. β¨
πΈ NAME πΈ
BIO_f_prefix, BIO_set_prefix, BIO_set_indent, BIO_get_indent β the prefix BIO filter, aka the thing that makes your lines look all tidy and put-together π
π 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 π¦
BIO_f_cipher() returns the prefix BIO method. bestie, this one is a filter for text output, and its whole vibe is that every single line gets automatically prefixed and indented based on what you asked for. automatic main character formatting. π
The prefix and the indentation get combined, okay? So for each line of output going through this filter, here's the order of operations, and it's giving assembly line:
- the prefix gets output first,
- then the amount of extra spaces indicated by the indentation,
- and then the line itself.
By default there is no prefix, and indentation is set to 0. so it's lowkey doing nothing until you tell it to. π
BIO_set_prefix() sets the prefix to be used for future lines of text, using prefix. prefix may be NULL, which signifies that there should be no prefix. If prefix isn't NULL, this function makes a copy of it β so you don't have to worry about your string wandering off, she keeps her own. π«Ά
BIO_set_indent() sets the indentation to be used for future lines of text, using indent. Negative values are not allowed. π«
BIO_get_indent() gets the current indentation. simple. iconic.
β NOTES β
BIO_set_prefix(), BIO_set_indent() and BIO_get_indent() are implemented as macros. iykyk. π
π RETURN VALUES π
BIO_f_prefix()returns the prefix BIO method.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.
so like, check your return values bestie, don't just yolo it. π
π₯ SEE ALSO π₯
β¨ HISTORY β¨
BIO_get_indent(), BIO_set_indent(), BIO_set_prefix() were added in OpenSSL 3.0. so they're not ancient, they're just well-adjusted. πΈ
π COPYRIGHT π
Copyright 2019-2025 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>.
and that's the whole page, bestie!! π«Ά this was the BIO_F_PREFIX(3SSL) page from the OpenSSL fam, version 4.0.3, dated 2026-09-29. go forth and indent responsibly π
β¨π
π¦ 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