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_s_null - null data sink
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/bio.h>
     10      1.1  christos 
     11      1.1  christos  const BIO_METHOD *BIO_s_null(void);
     12      1.1  christos 
     13      1.1  christos =head1 DESCRIPTION
     14      1.1  christos 
     15      1.1  christos BIO_s_null() returns the null sink BIO method. Data written to
     16      1.1  christos the null sink is discarded, reads return EOF.
     17      1.1  christos 
     18      1.1  christos =head1 NOTES
     19      1.1  christos 
     20      1.1  christos A null sink BIO behaves in a similar manner to the Unix /dev/null
     21      1.1  christos device.
     22      1.1  christos 
     23      1.1  christos A null bio can be placed on the end of a chain to discard any data
     24      1.1  christos passed through it.
     25      1.1  christos 
     26      1.1  christos A null sink is useful if, for example, an application wishes to digest some
     27      1.1  christos data by writing through a digest bio but not send the digested data anywhere.
     28      1.1  christos Since a BIO chain must normally include a source/sink BIO this can be achieved
     29      1.1  christos by adding a null sink BIO to the end of the chain
     30      1.1  christos 
     31      1.1  christos =head1 RETURN VALUES
     32      1.1  christos 
     33      1.1  christos BIO_s_null() returns the null sink BIO method.
     34      1.1  christos 
     35      1.1  christos =head1 COPYRIGHT
     36      1.1  christos 
     37      1.1  christos Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
     38      1.1  christos 
     39  1.1.1.2  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     40      1.1  christos this file except in compliance with the License.  You can obtain a copy
     41      1.1  christos in the file LICENSE in the source distribution or at
     42      1.1  christos L<https://www.openssl.org/source/license.html>.
     43      1.1  christos 
     44      1.1  christos =cut
     45