gnutls_x509_pr...t_pk_algorithm2(3)
π gnutls_x509_privkey_get_pk_algorithm2(3) π
okay bestie, sit down, hydrate, and let me tell you about this lil guy from the gnutls manual π it lives in section 3, it's an API function, and it's literally the moment where you ask a private key "hey babe, what public key algorithm are you?" π¦
β¨ NAME β¨
gnutls_x509_privkey_get_pk_algorithm2 β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_privkey_get_pk_algorithm2(gnutls_x509_privkey_t key,
unsigned int * bits);
no cap, that's the whole flex. two args, one int coming back at you π
π«Ά ARGUMENTS π«Ά
gnutls_x509_privkey_t keyβ bestie this one should contain agnutls_x509_privkey_ttype. that's the whole job description, it's giving "be the private key, please" πunsigned int * bitsβ this is where the number of bits in the public key algorithm gets dropped off. it's a pointer, so it's writing back to you, main character energy fr fr β¨
π« DESCRIPTION π«
This function will return the public key algorithm of a private key. that's it. that's the tea β it looks at your key and goes "oh, I know her" and hands you back the algorithm. iconic behaviour, honestly π
π₯ RETURNS π₯
on success you get a member of the gnutls_pk_algorithm_t enumeration β slay π
on error you get a negative error code β not slay π so like, check for that, okay? don't be out here assuming everything's fine.
π REPORTING BUGS π
found a bug? don't gatekeep, report it 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. (yes bestie, that means you can copy it, just keep the receipts π§Ύβ¨)
π¦ 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 whole thing, it's a vibe, iykyk ππ
and that's the whole page, bestie!! this was gnutls 3.8.13, written up in the gnutls_x509_privkey_get_pk_algorithm2(3) manual page β go forth and get those pk algorithms, you absolute legend ππβ¨
π¦ 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