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 agnutls_x509_privkey_ttype, 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 π
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
- 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