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:
- 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.
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
- 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