gnutls_sign_get_pk_algorithm(3)
β¨ gnutls_sign_get_pk_algorithm β¨
okay bestie, gather round π this one lives in the gnutls manual (yes, that gnutls, the TLS library, we stan) and it's literally just a little matchmaker function. It's an API function, it's cute, it's useful, let's get into it.
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
gnutls_pk_algorithm_t
gnutls_sign_get_pk_algorithm(gnutls_sign_algorithm_t sign);
π ARGUMENTS π
gnutls_sign_algorithm_t signβ bestie this is a signature algorithm. that's it. that's the whole input. she takes one (1) signature algorithm and she's ready to go π
π¦ DESCRIPTION π¦
So what does she actually do? She hands you back the public key algorithm that corresponds to the signature algorithm you gave her. Signature in, public key algorithm out. matchmaker behaviour, honestly π
but wait β plot twist π«’ there can be multiple public key algorithms supporting a particular signature type. So like, it's not always a one-to-one situation. When you're dealing with those messy overlapping cases, don't use this one β use gnutls_sign_supports_pk_algorithm() instead. iykyk π
fr fr, if your signature type could map to more than one public key algorithm, this function is not your girl. reach for gnutls_sign_supports_pk_algorithm() and thank me later π«Ά
β SINCE β
Available since version 3.1.1. she's been around, she's got seniority, respect the elder π§
π RETURNS π
She returns a gnutls_pk_algorithm_t value. Iconic. β¨
But if something goes wrong? You get GNUTLS_PK_UNKNOWN on error. so like, check for that, bestie, don't just vibe-check the return value and move on π
π REPORTING BUGS π
Found a bug? Not the vibe, but okay, report it:
- email: <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 queen, share it, remix 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, go visit:
https://www.gnutls.org/manual/
like, click the link, it's free, it's giving main character energy πΈ
and that's the whole page, bestie π written for gnutls manual, version 3.8.13, page gnutls_sign_get_pk_algorithm(3) β no cap, go forth and map your signature algorithms responsibly β¨π¦π
π¦ 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