GNUTLS_X509_CRT_SET_EXTENSION_BY_OID(3)
β¨ NAME β¨
gnutls_x509_crt_set_extension_by_oid β okay bestie, this is an API function π
(and it lives in the gnutls manual, section 3, iykyk)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_extension_by_oid(gnutls_x509_crt_t crt, const
char * oid, const void * buf, size_t sizeof_buf, unsigned int critical);
π ARGUMENTS π
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t, no capconst char * oidβ holds an Object Identifier in null terminated string, periodtconst void * bufβ a pointer to a DER encoded data π¦size_t sizeof_bufβ holds the size ofbuf, literallyunsigned int criticalβ should be non-zero if the extension is to be marked as critical π
π DESCRIPTION π
So this function will set an the extension, by the specified OID, in the certificate. π
And the extension data should be binary data DER encoded. That's the vibe, that's the whole thing.
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned. Otherwise, you get a negative error value. π
π REPORTING BUGS π
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. β¨ (yes bestie, that's the actual rule, don't skip it)
π 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/
okay that's the whole page, you ate that fr fr π stay hydrated, go read the Texinfo manual, and remember: DER encode your data before you hand it over, no exceptions π«Ά
this was the gnutls_x509_crt_set_extension_by_oid(3) page from the gnutls manual, version 3.8.13 β mwah, iconic, goodbye bestie πβ¨
π¦ 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