Home | History | Annotate | Line # | Download | only in man3
      1  1.1  christos =pod
      2  1.1  christos 
      3  1.1  christos =head1 NAME
      4  1.1  christos 
      5  1.1  christos BIO_f_prefix, BIO_set_prefix, BIO_set_indent, BIO_get_indent
      6  1.1  christos - prefix BIO filter
      7  1.1  christos 
      8  1.1  christos =head1 SYNOPSIS
      9  1.1  christos 
     10  1.1  christos  #include <openssl/bio.h>
     11  1.1  christos 
     12  1.1  christos  const BIO_METHOD *BIO_f_prefix(void);
     13  1.1  christos  long BIO_set_prefix(BIO *b, const char *prefix);
     14  1.1  christos  long BIO_set_indent(BIO *b, long indent);
     15  1.1  christos  long BIO_get_indent(BIO *b);
     16  1.1  christos 
     17  1.1  christos =head1 DESCRIPTION
     18  1.1  christos 
     19  1.1  christos BIO_f_cipher() returns the prefix BIO method. This is a filter for
     20  1.1  christos text output, where each line gets automatically prefixed and indented
     21  1.1  christos according to user input.
     22  1.1  christos 
     23  1.1  christos The prefix and the indentation are combined.  For each line of output
     24  1.1  christos going through this filter, the prefix is output first, then the amount
     25  1.1  christos of additional spaces indicated by the indentation, and then the line
     26  1.1  christos itself.
     27  1.1  christos 
     28  1.1  christos By default, there is no prefix, and indentation is set to 0.
     29  1.1  christos 
     30  1.1  christos BIO_set_prefix() sets the prefix to be used for future lines of
     31  1.1  christos text, using I<prefix>.  I<prefix> may be NULL, signifying that there
     32  1.1  christos should be no prefix.  If I<prefix> isn't NULL, this function makes a
     33  1.1  christos copy of it.
     34  1.1  christos 
     35  1.1  christos BIO_set_indent() sets the indentation to be used for future lines of
     36  1.1  christos text, using I<indent>.  Negative values are not allowed.
     37  1.1  christos 
     38  1.1  christos BIO_get_indent() gets the current indentation.
     39  1.1  christos 
     40  1.1  christos =head1 NOTES
     41  1.1  christos 
     42  1.1  christos BIO_set_prefix(), BIO_set_indent() and BIO_get_indent() are
     43  1.1  christos implemented as macros.
     44  1.1  christos 
     45  1.1  christos =head1 RETURN VALUES
     46  1.1  christos 
     47  1.1  christos BIO_f_prefix() returns the prefix BIO method.
     48  1.1  christos 
     49  1.1  christos BIO_set_prefix() returns 1 if the prefix was correctly set, or <=0 on
     50  1.1  christos failure.
     51  1.1  christos 
     52  1.1  christos BIO_set_indent() returns 1 if the prefix was correctly set, or <=0 on
     53  1.1  christos failure.
     54  1.1  christos 
     55  1.1  christos BIO_get_indent() returns the current indentation, or a negative value for failure.
     56  1.1  christos 
     57  1.1  christos =head1 SEE ALSO
     58  1.1  christos 
     59  1.1  christos L<bio(7)>
     60  1.1  christos 
     61  1.1  christos =head1 COPYRIGHT
     62  1.1  christos 
     63  1.1  christos Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
     64  1.1  christos 
     65  1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     66  1.1  christos this file except in compliance with the License.  You can obtain a copy
     67  1.1  christos in the file LICENSE in the source distribution or at
     68  1.1  christos L<https://www.openssl.org/source/license.html>.
     69  1.1  christos 
     70  1.1  christos =cut
     71