gnutls_cipher_suite_info(3)
β¨ gnutls_cipher_suite_info β¨
okay bestie, welcome to the gnutls manual, section 3 π this one's called gnutls_cipher_suite_info and it's literally an API function, no cap.
π¦ NAME π¦
gnutls_cipher_suite_info β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
const char * gnutls_cipher_suite_info(size_t idx, unsigned char * cs_id,
gnutls_kx_algorithm_t * kx, gnutls_cipher_algorithm_t * cipher,
gnutls_mac_algorithm_t * mac, gnutls_protocol_t * min_version);
π ARGUMENTS π
size_t idxβ the index of the cipher suite you wanna get info about. starts at0, like a real one πunsigned char * cs_idβ output buffer that needs room for2bytes, and it holds the cipher suite value β¨gnutls_kx_algorithm_t * kxβ output variable telling you the key exchange algorithm, orNULL.gnutls_cipher_algorithm_t * cipherβ output variable telling you the cipher, orNULL.gnutls_mac_algorithm_t * macβ output variable telling you the MAC algorithm, orNULL.gnutls_protocol_t * min_versionβ output variable telling you the TLS protocol version, orNULL.
π DESCRIPTION π
so basically you're getting info about the supported cipher suites. the move is to call this function iteratively to get info about all the supported cipher suites, one by one π«Ά
call it with idx=0 to get the first cipher suite, then idx=1, and so on and so onβ¦ until the function hands you back NULL and you know you're done. it's giving scrolling through a playlist until it runs out fr fr π
π RETURNS π
it gives you the name of the idx cipher suite, and it sets all the info about that cipher suite in the output variables π if idx is out of bounds, you get NULL. periodt.
π REPORTING BUGS π
found a bug? 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. iconic, 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, go visit
https://www.gnutls.org/manual/
and that's the whole page bestie!! this little cutie lives in gnutls version 3.8.13 π mwah, go slay some TLS ππ¦β¨
π¦ 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