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 type gnutls_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 the gnutls_privkey_flags family. 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:


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