GNUTLS_X509_PRIVKEY_GET_PK_ALGORITHM(3)

✨ gnutls_x509_pri...et_pk_algorithm(3) ✨

okay bestie, so this is a page from the gnutls manual and it's literally all about one tiny little function that tells you what kind of public key is hiding inside your private key πŸŽ€


πŸ’– NAME πŸ’–

gnutls_x509_privkey_get_pk_algorithm β€” it's an API function, no cap 🫢


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_privkey_get_pk_algorithm(gnutls_x509_privkey_t key);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_privkey_t key β€” bestie this should contain a gnutls_x509_privkey_t type, that's the whole vibe πŸ’…

✨ DESCRIPTION ✨

So the way that this works: this function will return the public key algorithm of a private key. That's it. That's the tea. πŸ“


πŸ‘‘ RETURNS πŸ‘‘

It hands you back a member of the gnutls_pk_algorithm_t enumeration when it slays πŸ’– β€” or a negative error code on error 😭 (yes, negative, do not ignore it, it's giving "something went wrong").


πŸ› REPORTING BUGS πŸ›

Found a bug? 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/

lowkey the most important thing here: read your return value. a negative number is not a vibe check, it's an error. periodt πŸ’€

ok that's the whole page bestie, mwah πŸ’…βœ¨ this was gnutls version 3.8.13, from the gnutls_x509_pri...et_pk_algorithm(3) manual β€” go forth and go get that pk algorithm, i'm obsessed with you πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from