gnutls_x509_cr...ature_algorithm(3)
β¨ gnutls_x509_cr...ature_algorithm(3) β¨
okay bestie, gather round π this one lives in the gnutls manual (yes, the big one), and it's genuinely such a useful little function. no cap.
πΈ NAME πΈ
gnutls_x509_crq_get_signature_algorithm β it's an API function, periodt.
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_crq_get_signature_algorithm(gnutls_x509_crq_t crq);
π¦ ARGUMENTS π¦
gnutls_x509_crq_t crqβ this one "should contain agnutls_x509_cr_ttype". yes literally that's what it says, i'm not making it up π
π DESCRIPTION π
so this function hands you back a value from the gnutls_sign_algorithm_t enumeration β and that value is the signature algorithm that was used to sign this certificate request. that's the whole vibe. it's giving "who signed this crq and with what" π₯
now here's the iconic part: since 3.6.0 this function never returns a negative error code. not once. error cases and unknown/unsupported signature algorithms all get mapped to GNUTLS_SIGN_UNKNOWN. so like, no sad little negative numbers coming back to ruin your day β just GNUTLS_SIGN_UNKNOWN doing its best π«Ά
β RETURNS β
a gnutls_sign_algorithm_t value. that's it, that's the return π
π SINCE π
3.4.0 β it's been around a while, an elder icon π
π REPORTING BUGS π
found something cursed? tell the people:
- 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.
π 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/
fr fr, if you need the real-deal docs and /usr/share/doc/gnutls/ is being shy, that link is your bestie π
okay that's the whole page, slay, no notes β¨ this was gnutls version 3.8.13, 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