GNUTLS_SIGN_SUPPORTS_PK_ALGORITHM(3)

πŸ’– NAME πŸ’–

gnutls_sign_supports_pk_algorithm β€” bestie, this is an API function and it's here to answer one very specific "are y'all compatible?" question πŸ’…

This one lives in the gnutls manual, so you already know it's about TLS and crypto and all that good stuff.


✨ SYNOPSIS ✨

#include <gnutls/gnutls.h>

unsigned gnutls_sign_supports_pk_algorithm(gnutls_sign_algorithm_t sign,
                                           gnutls_pk_algorithm_t pk);

okay so that's the whole vibe right there 🫢 two inputs, one unsigned coming back out.


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_sign_algorithm_t sign β€” is a signature algorithm, like, that's literally what it is πŸ¦‹
  • gnutls_pk_algorithm_t pk β€” is a public key algorithm, same energy, different type 🌸

🌈 DESCRIPTION 🌈

This function returns non-zero if the public key algorithm corresponds to the given signature algorithm. That is, if that signature can be generated from the given private key algorithm. no cap, that's the whole plot πŸ’€

So like... you hand it a signature algorithm and a public key algorithm, and it tells you whether they're a match. it's giving compatibility check, it's giving "do these two even go together" 🧚


⭐ SINCE ⭐

3.6.0 β€” been around since then, an icon, a legend πŸ‘‘


πŸ’œ RETURNS πŸ’œ

return non-zero when the provided algorithms are compatible. and if they're not compatible? you get zero, which is also technically a value, and that's on ✨ booleans ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? not me being the one to tell you, but fr fr, report bugs to <bugs@gnutls.org> πŸ“§

Home page: https://www.gnutls.org β€” go peek, it's cute πŸ¦‹


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. yes bestie, that's the legal bit and we respect it πŸ’…


πŸ“ 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/

like, go read the real thing, it's right there πŸ”₯


okay that's the whole page, mwah πŸ’– this was gnutls, version 3.8.13, and yeah the date situation is just that classic manpage footer energy β€” stay compatible, stay iconic, periodt 🌸

πŸ“¦ where this page comes from