gnutls_x509_key_purpose_init(3)

✨ gnutls_x509_key_purpose_init ✨

okay so bestie, we're in the gnutls manual today and this lil function is the glow-up ritual for your key purposes object πŸŽ€ it's from x509-ext.h which is the ✨extended✨ corner of the X.509 world, iykyk


πŸ’… NAME πŸ’…

gnutls_x509_key_purpose_init β€” the API function that gets your key purposes struct all set up and ready to slay πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509-ext.h>

int gnutls_x509_key_purpose_init(gnutls_x509_key_purposes_t * p);

🌸 ARGUMENTS 🌸

  • gnutls_x509_key_purposes_t * p β€” the key purposes, bestie. this is the thing you're initializing. she's the main character here πŸ‘‘

🌈 DESCRIPTION 🌈

so like. this function initializes an alternative names type. yes literally, that's what the manpage says, we are not making this up πŸ™ˆ the extended key purposes type is the thing getting initialized and she's getting her fresh start ✨


πŸ’– RETURNS πŸ’–

when it works, you get GNUTLS_E_SUCCESS which is <rainbow>0` and that's your cue to celebrate πŸŽ‰ otherwise you get a negative error value and you go 😭 and check what went wrong.


⭐ SINCE ⭐

3.3.0 β€” she's been around since 3.3.0, a true veteran, no cap 🫢


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, tell the gnutls girlies:


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.

like. free to copy, just keep the receipts, periodt πŸ’…


πŸ” SEE ALSO πŸ”

the full documentation for gnutls is maintained as a Texinfo manual πŸ“š and if the /usr/share/doc/gnutls/ directory does not contain the HTML form, bestie, just go visit:

https://www.gnutls.org/manual/


lowkey a whole lot of nothing for a one-liner function but every detail ate and we're keeping all of them πŸ’€βœ¨

kisses from the gnutls 3.8.13 era, this page's date energy lives in the footer of gnutls_x509_key_purpose_init(3) and we're obsessed πŸ§šπŸ’œ bye bestie, go initialize something

πŸ“¦ where this page comes from