gnutls_protocol_get_id(3)
π gnutls_protocol_get_id π
okay bestie, welcome to the gnutls manual, specifically the page for gnutls_protocol_get_id π it's a lil API function and it's honestly so useful, come sit with me.
β¨ NAME β¨
gnutls_protocol_get_id β API function π¦
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
gnutls_protocol_t gnutls_protocol_get_id(const char * name);
like. look at her. one argument, one return type, no drama π
π«Ά ARGUMENTS π«Ά
const char * nameβ this is a protocol name, bestie. just a string, that's it, that's the whole vibe π
π DESCRIPTION π
so what does she DO? she takes that name and gets you the id for it. and the way she does it β the names are compared in a case insensitive way. so "TLS1.2", "tls1.2", "Tls1.2"? all the same girl, all matching, no cap π
β¨
π RETURNS π
she hands you back an id of the specified protocol π
but if it goes wrong? you get GNUTLS_VERSION_UNKNOWN on error π that's your "idk her" of return values, fr fr
π REPORTING BUGS π
found something cursed? not me gatekeeping, go tell them:
- Report bugs to <bugs@gnutls.org>. π§
- Home page: https://www.gnutls.org π
π§ COPYRIGHT π§
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. β¨ (slay, honestly, very generous of them)
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. π If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
go read it, iykyk π«Ά
and that's the whole page, bestie!! this was gnutls 3.8.13, the gnutls_protocol_get_id(3) page, brought to you by the gnutls girlies π mwah, go convert some protocol names, periodt π
π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms