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 a gnutls_x509_cr_t type". 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:


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