5 BIO_f_prefix, BIO_set_prefix, BIO_set_indent, BIO_get_indent
10 #include <openssl/bio.h>
12 const BIO_METHOD *BIO_f_prefix(void);
13 long BIO_set_prefix(BIO *b, const char *prefix);
14 long BIO_set_indent(BIO *b, long indent);
15 long BIO_get_indent(BIO *b);
19 BIO_f_cipher() returns the prefix BIO method. This is a filter for
20 text output, where each line gets automatically prefixed and indented
21 according to user input.
23 The prefix and the indentation are combined. For each line of output
24 going through this filter, the prefix is output first, then the amount
25 of additional spaces indicated by the indentation, and then the line
28 By default, there is no prefix, and indentation is set to 0.
30 BIO_set_prefix() sets the prefix to be used for future lines of
31 text, using I<prefix>. I<prefix> may be NULL, signifying that there
32 should be no prefix. If I<prefix> isn't NULL, this function makes a
35 BIO_set_indent() sets the indentation to be used for future lines of
36 text, using I<indent>. Negative values are not allowed.
38 BIO_get_indent() gets the current indentation.
42 BIO_set_prefix(), BIO_set_indent() and BIO_get_indent() are
43 implemented as macros.
47 BIO_f_prefix() returns the prefix BIO method.
49 BIO_set_prefix() returns 1 if the prefix was correctly set, or 0 on
52 BIO_set_indent() returns 1 if the prefix was correctly set, or 0 on
55 BIO_get_indent() returns the current indentation.
63 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
65 Licensed under the Apache License 2.0 (the "License"). You may not use
66 this file except in compliance with the License. You can obtain a copy
67 in the file LICENSE in the source distribution or at
68 L<https://www.openssl.org/source/license.html>.