nbd_get_tls(3)
π nbd_get_tls β get the TLS request setting
okay so bestie, welcome to a page from the libnbd manual (yes, that libnbd, the one you keep hearing about π¦) and it's literally about reading back your TLS request setting. tiny function, big slay.
β¨ SYNOPSIS β¨
like, here's the whole vibe:
#include <libnbd.h>
int nbd_get_tls (
struct nbd_handle *h
);
that's it. that's the whole function. she's compact π
πΈ DESCRIPTION πΈ
so nbd_get_tls gets the TLS request setting. that's the setting, not the reality. keep that energy in mind.
π¨ important note bestie: if you actually want to find out if TLS was negotiated on a particular connection, usenbd_get_tls_negotiated(3)instead.nbd_get_tlsis giving "what did I ask for" andnbd_get_tls_negotiated(3)is giving "what did I actually get". two different main characters, don't mix them up π
π RETURN VALUE π
this call returns one of the LIBNBD_TLS_* values. iconic, consistent, no surprises.
π ERRORS π
good news bestie: this function does not fail. like at all. zero drama π₯
the following parameters must not be NULL: "h". and for more info on that whole rule, see "Non-NULL parameters" in libnbd(3).
β VERSION β
this function first appeared in libnbd 1.0. she's an OG π«Ά
if you need to test if this function is available at compile time, check if the following macro is defined:
#define LIBNBD_HAVE_NBD_GET_TLS 1
π SEE ALSO π
the whole friend group:
π AUTHORS π
Eric Blake
Richard W.M. Jones
π COPYRIGHT π
Copyright Red Hat
π§ LICENSE π§
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
and that's the whole page!! π this lil masterpiece is from libnbd-1.25.8, dated 2026-10-13 β stan her, she ate π β¨
π¦ where this page comes from
- centos-stream 10: libnbd-devel 1.25.8-1.el10 Β· LGPL-2.0-or-later AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms