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