gnutls_cipher_get_id(3)

πŸ’– gnutls_cipher_get_id(3) β€” the gnutls manual, bestie edition πŸ’–

okay so you found your way into section 3 of the gnutls manual and honestly? iconic. this page is short and sweet but it's giving "tiny function, big energy". let's get into it πŸŽ€


✨ NAME ✨

gnutls_cipher_get_id β€” an API function, bestie. that's the whole name. short king πŸ‘‘


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

gnutls_cipher_algorithm_t gnutls_cipher_get_id(const char * name);

look at that signature. clean. immaculate. no notes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • const char * name β€” this is a cipher algorithm name, bestie. just a lil string. that's it. that's the whole vibe.

πŸ’œ DESCRIPTION πŸ’œ

so the way this works is: you hand it a name, and it goes looking. and here's the cute lil detail that matters β€” the names are compared in a case insensitive way. so like, "AES-128-GCM" and "aes-128-gcm" are literally the same thing to this function. it does not care about your capitalization era. it's above all that. lowercase, uppercase, mixed-case chaos β€” it's all the same to her ✨


πŸ”₯ RETURNS πŸ”₯

she returns a gnutls_cipher_algorithm_t value that corresponds to the cipher you specified. 🫢

but if something goes wrong? you get GNUTLS_CIPHER_UNKNOWN on error. so if you're staring at that value wondering why nothing works... yeah. that's the error signal, no cap. handle it πŸ’€

😭 REPORTING BUGS 😭

found a bug? don't suffer in silence bestie, report it:


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. (which is a slay, honestly β€” free to share, just keep the receipts 🧾✨)


🌈 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. it's giving ✨ lore ✨. iykyk πŸ“š


and that's the page, bestie!! this was gnutls manual page gnutls_cipher_get_id(3), straight from version 3.8.13. mwah. go forth and cipher responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from