gnutls_pubkey_get_pk_algorithm(3)

πŸ’– gnutls_pubkey_get_pk_algorithm πŸ’–

okay bestie, welcome to the gnutls manual pages, and today's main character is gnutls_pubkey_get_pk_algorithm β€” yes it's an API function, yes it's iconic, and yes we're gonna get you fluent in it. pull up a chair, grab a strawberry πŸ“, and let's go.


✨ SYNOPSIS ✨

#include <gnutls/abstract.h>

int gnutls_pubkey_get_pk_algorithm(gnutls_pubkey_t key, unsigned int *
bits);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pubkey_t key β€” this one should contain a gnutls_pubkey_t type. like, that's its whole job. it's the public key we're interrogating, respectfully. πŸ”
  • unsigned int * bits β€” if you set this, it will return the number of bits of the parameters. and plot twist: it may be NULL, so if you truly do not care about bits, you can just pass NULL and move on with your life. πŸ’…

🌸 DESCRIPTION 🌸

So what does this function do? It will return the public key algorithm</> of a public key β€” and if possible, it will also hand you a number of bits that indicates the security parameter of the key. it's giving "tell me who you are and how strong you are" energy. no cap. πŸ‘‘


⭐ RETURNS ⭐

On success you get a member of the gnutls_pk_algorithm_t enumeration β€” slay. On error you get a negative error code, which is the universe's way of saying "nah". 😭


πŸ¦‹ SINCE πŸ¦‹

2.12.0 β€” this one's been around for a minute, fr fr. vintage but make it functional. ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? don't suffer in silence, bestie β€” report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org


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, visit:

https://www.gnutls.org/manual/


🫢 and that's the whole page, bestie. go forth, read your public keys, collect your bits, be the main character of your own TLS stack. iykyk.

gnutls version 3.8.13 β€” mwah, sending you the biggest πŸ’– from the gnutls manual, see you in the next page 🧚✨

πŸ“¦ where this page comes from