BIO_S_NULL(3ossl)

πŸ“¦ version 3.5.0, in opensuse-leap 16.0

🌸 NAME 🌸

BIO_s_null β€” null data sink. This is the 3ossl manual page, bestie, and it's literally about a sink that takes data and sends it nowhere. πŸ’…

✨ SYNOPSIS ✨

#include <openssl/bio.h>

const BIO_METHOD *BIO_s_null(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so BIO_s_null() returns the null sink BIO method. That's the whole plot. Data written to the null sink is discarded β€” gone, bye, not stored β€” and reads return EOF. No cap. πŸ’–

πŸŽ€ NOTES πŸŽ€

  • A null sink BIO behaves in a similar manner to the Unix /dev/null device. Iconic behavior, honestly. πŸ•³οΈ
  • A null bio can be placed on the end of a chain to discard any data passed through it. It's giving β€œfinal destination: nowhere.” ✨
  • A null sink is useful if, for example, an application wishes to digest some data by writing through a digest bio but not send the digested data anywhere. Since a BIO chain must normally include a source/sink BIO this can be achieved by adding a null sink BIO to the end of the chain 🫢

πŸ’œ RETURN VALUES πŸ’œ

BIO_s_null() returns the null sink BIO method. That's it β€” the return value is the method, bestie. 🫢

Copyright 2000-2016 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>.


πŸŽ€ cute sign-off: this page is from OpenSSL source/version 3.5.0, dated 2026-09-25, and its manual tag is BIO_S_NULL(3ossl). Bye bestie, go discard some data responsibly πŸ’…βœ¨
πŸ“¦ where this page comes from