gnutls_sign_al...m_get_requested(3)
π gnutls_sign_algorithm_get_requested π
okay bestie, welcome to the gnutls manual, you're gonna eat this one up β¨
πΈ NAME πΈ
gnutls_sign_algorithm_get_requested β it's an API function, and it's lowkey iconic π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_sign_algorithm_get_requested(gnutls_session_t session, size_t
indx, gnutls_sign_algorithm_t * algo);
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is agnutls_session_ttype, that's the whole vibe of it π«Άsize_t indxβ it's an index of the signature algorithm to return, like the lil number you pass to pick which one you wantgnutls_sign_algorithm_t * algoβ the returned certificate type gets stored right there, she's the output girlie π
β¨ DESCRIPTION β¨
so what this does is: it returns the signature algorithm specified by index that was requested by the peer. That's it, that's the serve. π
but listen β if the specified index has no data available, this function returns GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE. And if the negotiated TLS version doesn't even support signature algorithms, then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned even for the first index. Yes, even index zero. Not a drill. π
and the first index? that's 0. Zero-based, like a real one. π
this function is useful in the certificate callback functions to assist in selecting the correct certificate. so if you're out here picking certs, she's your girl fr fr π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned β slay β¨ otherwise an error code is returned, and you get to deal with that π
β SINCE β
2.10.0 β she's been around since way back, an OG π
π REPORTING BUGS π
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. periodt π
π₯ 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/
okay and that's the whole page bestie!! this was gnutls version 3.8.13, and yeah the manual name is just gnutls in case you were wondering π¦ mwah, go read some more manpages, you're doing amazing πβ¨π
π¦ 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