BIO_F_NULL(3)
π BIO_F_NULL(3) β the null filter, bestie β¨
okay so this one lives in the Library Functions Manual and it's from libcrypto, which you already know and love π«Ά. It's a <pink>filter BIO</pink> page, and honestly? It's giving minimalist icon. Let's get into it.
β¨ SYNOPSIS β¨
library βlibcryptoβ #include <openssl/bio.h>
const BIO_METHOD *
BIO_f_null(void);
that's it. that's the whole vibe. π
πΈ DESCRIPTION πΈ
So BIO_f_null() hands you back the null filter BIO method. And what does a null filter BIO do? literally nothing π. That's the whole job. As may be apparent (their words, not mine, but I felt that), a null filter BIO is not particularly useful. It's the human equivalent of a group chat member who never types. iconic for existing, tbh.
Here's the cute part though: every single request you send to a null filter BIO gets passed through to the next BIO in the chain. So a BIO chain that contains a null filter BIO behaves exactly as though the BIO wasn't there at all. Ghost mode. π»
β οΈ but bestie, listen β a chain containing a null filter BIO cannot be copied withBIO_dup_chain(3). Any attempt to do so fails and returnsNULL. no cap. don't try it and then act surprised π
π RETURN VALUES π
BIO_f_null() returns the null filter BIO method. slay, consistent.
And when you call stuff on an actual null filter BIO object:
BIO_method_type(3)returns the constantBIO_TYPE_NULL_FILTERBIO_method_name(3)returns a pointer to the static string"NULL filter"
π and here's the disclaimer they insisted on: that string is not to be confused with a NUL string nor with a NULL pointer. three very different things, bestie. do not mix them up, i'm begging. π
π¦ SEE ALSO π¦
π HISTORY π
BIO_f_null() first appeared in SSLeay 0.8.0 and has been available since OpenBSD 2.4. an elder. a legend. main character since day one π
β anyway, that's the null filter β does nothing, gets copied by no one, and somehow still has a whole manpage. we have no choice but to stan. β¨
mwah π β this page was served up by Debian on June 8, 2025. go touch some grass now, bestie π
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2000 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms