gnutls_x509_cr...key_purpose_oid(3)
π gnutls_x509_cr...key_purpose_oid(3) β bestie edition π
okay so this is a page from the gnutls manual, and it's all about gnutls_x509_crq_set_key_purpose_oid. yes the filename is truncated with ... like that, that's not me being dramatic, that's just how the man page is named. iykyk. π
β¨ NAME β¨
gnutls_x509_crq_set_key_purpose_oid β the API function that tells your certificate request what it's actually for. main character energy for your EKU, fr fr.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_set_key_purpose_oid(gnutls_x509_crq_t crq, const
void * oid, unsigned int critical);
likeβ¦ it's giving "three arguments, one job, no cap." π
π¦ ARGUMENTS π¦
gnutls_x509_crq_t crqβ a certificate of typegnutls_x509_crq_t. this is your crq, your little guy, the thing you're editing. π«Άconst void * oidβ a pointer to a null-terminated string that holds the OID. note: a string, not a struct, not a vibe, a string. β¨unsigned int criticalβ whether this extension will be critical or not. yes/no energy. you decide how loud it gets. π₯
π DESCRIPTION π
so this function sets the key purpose OIDs of the Certificate. lowkey important, highkey iconic.
these are stored in the Extended Key Usage extension (2.5.29.37) β that's the magic number right there, remember it, it's on the quiz. π
and hey, if you don't wanna memorize raw OID dot-numbers like some kind of gremlin, check the GNUTLS_KP_* definitions for human readable names. they're literally right there for you. π
Subsequent calls to this function will append OIDs to the OID list. so it's not overwrite, it's add. it just keeps stacking them. obsessed. β¨
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like, zero means slay, anything negative means we're not slaying. π
β SINCE β
2.8.0 β she's been around since 2.8.0, a real veteran, a legend tbh. π
π REPORTING BUGS π
found a bug? don't just sit there, bestie. 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.
(so like, take it, share it, just keep the receipts. respect the notice. π«Ά)
πΈ 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/
fr fr that's the whole page, nothing skipped, every flag and number accounted for. no cap. π
this whole thing is from gnutls version 3.8.13, page gnutls_x509_cr...key_purpose_oid(3) β and yeah the ... is still there, it's part of the name, we don't question it. bye bestie, go set some key purpose OIDs responsibly π§π
π¦ 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