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:
- 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. (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
- 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