gnutls_sign_is_secure2(3)

πŸ’– gnutls_sign_is_secure2(3) β€” bestie edition πŸ’–

okay so this one lives in the gnutls manual, and it's genuinely one of the most useful little vibe-checkers in the whole crypto toolbox. it's an API function, so yes, it's for the coders among us 🫢


✨ NAME ✨

gnutls_sign_is_secure2 β€” the API function that looks at a signature algorithm and tells you whether it's still slaying or whether it's giving "please retire" πŸ’€


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

unsigned gnutls_sign_is_secure2(gnutls_sign_algorithm_t algorithm,
unsigned int flags);

no cap, that's the whole thing. two args, one unsigned coming back at you. periodt.


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_sign_algorithm_t algorithm β€” bestie, this is a sign algorithm. the thing you're asking about. the main character of this function call πŸ‘‘
  • unsigned int flags β€” either zero, or GNUTLS_SIGN_FLAG_SECURE_FOR_CERTS. that's it, that's the menu. pick your vibe ✨

⭐ RETURNS ⭐

Non-zero if the provided signature algorithm is considered to be secure. so like… if you get a non-zero back, it passed the vibe check 🌈 if you get zero, it did not, and you should probably go touch some grass and pick a different algorithm 😭


πŸ¦‹ REPORTING BUGS πŸ¦‹

found a bug? don't suffer in silence, tell the gnutls girlies:


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. (iconic behaviour tbh β€” free to share, 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/

lowkey reminder: this page only tells you what the function does. it does not promise anything about algorithms that aren't in the original text, so don't come for me πŸ’…

and that's the whole page, bestie 🫢 this was gnutls 3.8.13, gnutls_sign_is_secure2(3), and you read it all the way through β€” obsessed with you fr fr. go check your signature algorithms, they deserve it πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from