gnutls_x509_privkey_set_flags(3)
π gnutls_x509_privkey_set_flags β the glow-up your private key asked for
okay so bestie, this one lives in the gnutls manual, and it's literally the function that lets you slap flags onto a private key after it already exists. no biggie, but kinda iconic.
β¨ NAME β¨
gnutls_x509_privkey_set_flags β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
void gnutls_x509_privkey_set_flags(gnutls_x509_privkey_t key, unsigned int flags);
like, that's the whole vibe. you pull in the header, you call the thing, done. π
π¦ ARGUMENTS π¦
gnutls_x509_privkey_t keyβ a key of typegnutls_x509_privkey_t. yes it's the same type twice, that's just how C rolls, we don't make the rules. πunsigned int flagsβ the flags, and they come from thegnutls_privkey_flagsfamily. pick your fighter. β¨
π DESCRIPTION π
so here's the tea: this function sets flags for the specified private key, after it is generated. like, post-glow-up customization. you already made the key, now you're telling it how to behave.
currently this is useful for the GNUTLS_PRIVKEY_FLAG_EXPORT_COMPAT flag, which allows exporting a "provable" private key in a backwards compatible way. that's the whole use case rn β but she's serving, so. π
β SINCE β
3.5.0 β an elder, honestly. been holding it down.
π REPORTING BUGS π
found a bug? do NOT suffer in silence, tell the devs:
- 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.
(translation: go off, share 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, then go visit:
https://www.gnutls.org/manual/
that's the plug, bestie. iykyk. π₯
and that's a wrap, my love π this page came to you from the gnutls manual, version 3.8.13 β signed, sealed, and serving main character energy. periodt. πβ¨
π¦ 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