gnutls_compression_get_id(3)
β¨ gnutls_compression_get_id(3) β¨
okay bestie, welcome to the gnutls manual β yes, that gnutls, the TLS library that's been holding it down since forever. this page is all about one lil function that goes by gnutls_compression_get_id, and honestly? it's giving "I just wanna look up a compression method by name" energy. π
πΈ NAME πΈ
gnutls_compression_get_id β API function
like, that's it. that's the name. iconic, no notes. π
π¦ SYNOPSIS π¦
#include <gnutls/compat.h>
gnutls_compression_method_t gnutls_compression_get_id(const char *
name);
so you gotta pull in <gnutls/compat.h> first β it's the compat header, iykyk β and then you can call the thing. returns a gnutls_compression_method_t, takes one const char *. periodt. β¨
π ARGUMENTS π
const char * nameβ this is the compression method name you're handing over. just a string, bestie. nothing scary. π
π DESCRIPTION π
so basically the function takes that name you gave it and compares it against the compression methods it knows about β and the way it compares them is case insensitive. meaning "DEFLATE", "deflate", and "DeFlAtE" all get treated the same. no cap. lowercase girlies and uppercase girlies are equal here. π«Ά
β RETURNS β
you get back an id for the compression method you specified as a string. slay. π
BUT β and this is the important part β if something goes wrong, you get GNUTLS_COMP_UNKNOWN back instead. so like, vibe check your return value, fr fr. π
π₯ REPORTING BUGS π₯
found a bug? don't just suffer in silence, tell the people:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna hear from you, bestie. π
π 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 copy and share this file however you want, no payment needed, just keep the copyright notice and this notice intact. generosity, honestly. π)
π 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 the full manual, it's the main character of the docs. πβ¨
and that's the whole page, bestie!! this was gnutls version 3.8.13, documented as gnutls_compression_get_id(3). now go forth and look up your compression methods by name, case-insensitively, like the icon you are. mwah. ππ¦πΈ
π¦ 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