GNUTLS_X509_CRQ_SET_EXTENSION_BY_OID(3)
β¨ NAME β¨
gnutls_x509_crq_set_extension_by_oid β bestie, this is the API function that slaps an extension onto a certificate request π
(and yes, it lives in the gnutls manual, section 3, iykyk)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_set_extension_by_oid(gnutls_x509_crq_t crq, const
char * oid, const void * buf, size_t sizeof_buf, unsigned int critical);
okay so literally just include the header and you're in π«Ά
π ARGUMENTS π
gnutls_x509_crq_t crqβ a certificate request of typegnutls_x509_crq_t. this is the main character you're decorating β¨const char * oidβ holds an Object Identifier as a null terminated string. it's giving "who dis extension" energy πconst void * bufβ a pointer to DER encoded data. the actual contents, raw and real πsize_t sizeof_bufβ holds the size ofbuf. like, how much data are we working with, fr frunsigned int criticalβ should be non-zero if the extension is to be marked as critical β οΈ non-zero = critical, zero = not critical, no in-between bestie
π DESCRIPTION π
This function will set an the extension, by the specified OID, in the certificate request. The extension data should be binary data DER encoded.
so basically: you hand it the crq, you hand it the OID of the extension you want, you hand it the DER-encoded bytes, and boom β the extension is set. the way that the data must be DER encoded though... no cap, it's not optional. binary DER or nothing π¦
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so like... zero is the slay outcome, anything negative means something went sideways π
π REPORTING BUGS π
Found a bug? Not me gatekeeping the email β 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. iconic licensing behavior honestly π
π¦ 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/
that's the whole page bestie, no notes π
this was gnutls version 3.8.13, brought to you by the gnutls_x509_crq_set_extension_by_oid(3) manual page β go set some extensions, you've got this πβ¨
π¦ 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