gnutls_pubkey_get_key_usage(3)
π gnutls_pubkey_get_key_usage(3) π
okay bestie, so this one lives in the gnutls manual (section 3, the library-call section, iykyk) and it's genuinely so simple it's giving iconic minimalism. it's an API function. that's it. that's the vibe. β¨
πΈ NAME πΈ
gnutls_pubkey_get_key_usage β API function
no cap, that's the whole name section. we love a short intro. π
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_pubkey_get_key_usage(gnutls_pubkey_t key, unsigned int *
usage);
the way you just include <gnutls/abstract.h> and then the function is right there for you. obsessed. π¦
β¨ ARGUMENTS β¨
gnutls_pubkey_t keyβ should contain agnutls_pubkey_ttype. yeah bestie, the param that holds the pubkey should hold the pubkey. ground-breaking, we know, but that's literally what it says. π«Άunsigned int * usageβ if you set it, it'll return the number of bits of the parameters (and yes, it may beNULL, so you can totally passNULLif you're just vibing and don't care about the value).
π DESCRIPTION π
so basically this function will return the key usage of the public key. that's the whole plot. no subplot, no twist, just the key usage of the public key, handed to you. periodt. π
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is 0, the good number, the slay number) β otherwise it hands you back a negative error value, which is the universe's way of saying "not today." π
π SINCE π
2.12.0 β this has been around since forever, it's a whole elder statesman of the API. respect. π
π REPORTING BUGS π
found something cursed? 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. (fr fr, keep the notice, that's the deal. π«Ά)
π¦ 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!! π this was gnutls_pubkey_get_key_usage(3) from the gnutls manual, version 3.8.13 β thanks for reading all the way to the bottom, you're the main character today. mwah. πβ¨πΈπ
π¦ 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