BIO_S_NULL(3SSL)

✨ BIO_S_NULL ✨

okay so bestie, welcome to the manual page for BIO_s_null β€” the ✨ null data sink ✨ β€” from the OpenSSL fam πŸ’–. She's tiny, she's simple, she's literally the void, and honestly? iconic.


🌸 NAME 🌸

BIO_s_null β€” null data sink πŸ•³οΈβœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include <openssl/bio.h>

const BIO_METHOD *BIO_s_null(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

So BIO_s_null() hands you back the null sink BIO method πŸ’…. What does a null sink do, you ask? Two things, and only two things:

  • anything you write to it just gets yeeted into the void β€” discarded, gone, never seen again πŸ’€
  • anything you try to read from it? returns EOF. immediately. no drama, no data, nothing 🫢

πŸ’– NOTES πŸ’–

ngl, a null sink BIO is basically giving <rainbow>/dev/null</rainbow> energy 🌈 β€” same vibe, different era.

You can also lowkey park a null bio at the end of a chain and it'll just discard any data that flows through into it. free cleanup, no cap 🧹✨

And here's the glow-up moment where it's actually useful: say your app wants to digest some data by writing through a digest bio, but doesn't actually want to send that digested data anywhere. that's the moment. because a BIO chain normally has to include a source/sink BIO, you can pull this off 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. that's the return value. slay πŸŽ€


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>.


okay that's the whole page, bestie, you're officially fluent in the void πŸ•³οΈβœ¨ this was OpenSSL BIO_S_NULL(3SSL), version 4.0.3, dated 2026-09-29 β€” mwah, go forth and discard responsibly πŸ’œπŸŽ€

πŸ“¦ where this page comes from