gnutls_kx_get_id(3)
π gnutls_kx_get_id β the glow-up guide π
okay so bestie, welcome to the gnutls manual (section 3, the library functions girlies) π this one is short and sweet and honestly? iconic. it's giving "tiny function, big main character energy." let's get into it β¨
β¨ NAME β¨
gnutls_kx_get_id β API function π¦
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
gnutls_kx_algorithm_t gnutls_kx_get_id(const char * name);
π ARGUMENTS π
const char * nameβ bestie this is a KX name, like, the string version of a key exchange algorithm's name. that's it, that's the whole input π«Ά
π DESCRIPTION π
so what does it do? it converts a string into a gnutls_kx_algorithm_t value π literally just a glow-up from text to enum, no cap.
and the way it does that comparison? case insensitive, babes. so you can scream your KX name in all caps or whisper it in lowercase and it will not care even a little bit β¨
β RETURNS β
it hands you back an id of the specified KX algorithm π
but if something goes wrong? you get GNUTLS_KX_UNKNOWN on error π (no drama, just that).
π REPORTING BUGS π
found a bug? don't be shy, report it 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. (translation: you can share it, just keep the receipts, periodt π )
π 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, then go visit:
https://www.gnutls.org/manual/
and that's the whole vibe check bestie, you ate π sending you off with all the love β this page is from gnutls 3.8.13, so if your version is different, iykyk π stay slay, go convert those KX names β¨π¦
π¦ 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