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 Β© 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