GNUTLS_PRIORITY_GET_CIPHER_SUITE_INDEX(3)
β¨ gnutls_priority_get_cipher_suite_index β¨
okay bestie, this one lives in the gnutls manual (yes, the whole gnutls manual, she's famous) and she's an API function π
πΈ NAME πΈ
gnutls_priority_get_cipher_suite_index β it's an API function, periodt.
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_priority_get_cipher_suite_index(gnutls_priority_t pcache,
unsigned int idx, unsigned int * sidx);
π¦ ARGUMENTS π¦
gnutls_priority_t pcacheβ is agnutls_priority_ttype. that's it, that's the vibe πunsigned int idxβ is an index number. just a lil number, doing her thing.unsigned int * sidxβ the internal index of the cipher suite you wanna get info about π
β¨ DESCRIPTION β¨
so the way this works is: she hands you the internal ciphersuite index so you can go use it with gnutls_cipher_suite_info(). that's the whole point, no cap.
the idx you pass in? that's an index that's kept inside the priorities structure. and here's the tea β it might be that a valid priorities index does not actually correspond to a ciphersuite π and in that case, GNUTLS_E_UNKNOWN_CIPHER_SUITE gets returned. rude, but valid.
and once you cross the last available index? yeah, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE comes back. she said no more data for you π
π RETURNS π
on success she returns GNUTLS_E_SUCCESS (0) π₯³ β or a negative error value otherwise. so like, check that return value bestie, fr fr.
π SINCE π
3.0.9 β an icon, a legend, been around forever, we stan β
π«Ά REPORTING BUGS π«Ά
found a bug? spill 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. (yes you can share her around, 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, go visit:
https://www.gnutls.org/manual/
okay that's the whole page bestie, you ate it up π πΈ
this wasgnutlsversion3.8.13, signing off β mwah, love u, go read ur cipher suites ππ
π¦ 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