gnutls_x509_cr...ature_algorithm(3)

✨ NAME ✨

gnutls_x509_crl_get_signature_algorithm β€” it's an API function, bestie πŸ’–

This one lives in the gnutls manual, and we're about to make it make sense. Periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509.h>

int gnutls_x509_crl_get_signature_algorithm(gnutls_x509_crl_t crl);

Like, that's the whole vibe right there πŸ‘‘


🌸 ARGUMENTS 🌸

  • gnutls_x509_crl_t crl β€” okay so this should contain a gnutls_x509_crl_t type. That's it, that's the requirement. Give it your CRL and let it cook πŸ“

πŸ’… DESCRIPTION πŸ’…

So here's the tea: this function will return a value of the gnutls_sign_algorithm_t enumeration that is the signature algorithm. Basically you hand it a CRL and it tells you what signed it. slay πŸ’š

And since 3.6.0? This function never returns a negative error code. Not ever. No cap. 🚫

So what happens when stuff goes wrong, or the signature algorithm is unknown/unsupported? It all gets mapped to GNUTLS_SIGN_UNKNOWN. Every single error case, every unknown, every unsupported one β€” they all land in the same bucket. So don't be out here checking for negative returns like it's 2018, because that era is over. πŸ’€


πŸ”₯ RETURNS πŸ”₯

A gnutls_sign_algorithm_t value. That's the whole return, that's the main character energy right there ✨


πŸŽ€ REPORTING BUGS πŸŽ€

Found a bug? Don't suffer in silence, bestie, 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. So like, go off, share it, remix it β€” 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, visit:

https://www.gnutls.org/manual/
Go read the docs, iykyk 🫢

And that's the whole page, bestie πŸ’œ This was the gnutls manual, version 3.8.13, and yeah the page name is a whole mouthful (gnutls_x509_cr...ature_algorithm) so we just call it by its government name up top. Stay iconic, read your man pages, mwah πŸ˜­πŸ’…πŸŒΈ

πŸ“¦ where this page comes from