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 agnutls_pubkey_ttype. 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 beNULL, so if you truly do not care about bits, you can just passNULLand 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 π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms