gnutls_pubkey_set_key_usage(3)
π gnutls_pubkey_set_key_usage(3) π
okay bestie, welcome to the gnutls manual, page for gnutls_pubkey_set_key_usage π this is the one where you tell a public key what it's allowed to do with its life. very main character, very "setting boundaries" energy. π
β¨ NAME β¨
gnutls_pubkey_set_key_usage β an API function π¦
β¨ SYNOPSIS β¨
#include <gnutls/abstract.h>
int gnutls_pubkey_set_key_usage(gnutls_pubkey_t key, unsigned int
usage);
β¨ ARGUMENTS β¨
gnutls_pubkey_t keyβ a certificate of typegnutls_x509_crt_t. yes girl, the docs literally say certificate, we're just reporting the vibe πΈunsigned int usageβ a whole ORed sequence of theGNUTLS_KEY_*elements. stack 'em up with|, it's giving buffet π
β¨ DESCRIPTION β¨
so this function sets the key usage flags of the public key. that's it, that's the whole job, no cap. π₯
and like, lowkey important: this is only useful if the key is going to be exported to a certificate or a certificate request. if you're not exporting, this whole thing is just you doing arts and crafts for nobody π so keep that in mind bestie.
β¨ RETURNS β¨
if it works? you get GNUTLS_E_SUCCESS (0) π icon. ate. periodt.
if it doesn't? you get a negative error value π rude, but at least it's honest.
β¨ SINCE β¨
2.12.0 β she's been around a minute, a true veteran of the game π
β¨ REPORTING BUGS β¨
found a bug? don't suffer in silence, tell the people π«Ά
- 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. slay, generous, we love to see it π
β¨ 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/
heads up bestie: this page is from the gnutls manual, version 3.8.13 π§ if you're reading a different version, double check, iykyk.
and that's the whole page!! go forth and set those key usages, you absolute legend πβ¨ bye bestie!! ππ¦πΈ
π¦ 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