gnutls_privkey_set_flags(3)

πŸ’– gnutls_privkey_set_flags(3) πŸ’–

okay bestie, welcome to the gnutls corner of the manual, this one's a lil function called gnutls_privkey_set_flags and it's genuinely so simple it's giving "one-line slay" energy ✨


🌸 NAME 🌸

gnutls_privkey_set_flags β€” it's an API function, no cap πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/abstract.h>

void gnutls_privkey_set_flags(gnutls_privkey_t key, unsigned int flags);

look at her. two args. returns nothing. icon behaviour fr fr πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_privkey_t key β€” a key of type gnutls_privkey_t, aka the private key you're about to give a lil glow-up ✨
  • unsigned int flags β€” the flags, straight from the gnutls_privkey_flags list. pick your vibe, but pick from that list bestie 🫢

πŸ’œ DESCRIPTION πŸ’œ

so basically? this function sets flags for the private key you already have, after it's been generated. it's not a build-a-key situation, it's a customize-the-key-you-already-have situation πŸ’…

and right now, the one thing it's actually useful for is GNUTLS_PRIVKEY_FLAG_EXPORT_COMPAT, which lets you export a "provable" private key in a backwards compatible way. that's the whole flex. that's it. obsessed tbh 🌈


⭐ SINCE ⭐

3.5.0 β€” so it's been around a minute, it's a classic πŸ’–


😭 REPORTING BUGS 😭

found a bug? don't 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. (yes really, go off, redistribute responsibly πŸŽ€)


🌈 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/


ngl that's the entire page bestie, short and sweet, main character energy with zero filler πŸ’€

k bye, this was gnutls version 3.8.13 bringing you gnutls_privkey_set_flags(3), mwah, go set some flags πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from