GNUTLS_X509_CRT_SET_CRQ_EXTENSION_BY_OID(3)
π NAME π
gnutls_x509_crt_set_crq_extension_by_oid β an API function, bestie. And it lives in the gnutls manual, page gnutls_x509_crt_set_crq_extension_by_oid(3) π
β¨ SYNOPSIS β¨
okay so first thing, you gotta include this header, no skipping:
#include <gnutls/x509.h>
and here's the whole function signature, exactly, don't freestyle it:
int gnutls_x509_crt_set_crq_extension_by_oid(gnutls_x509_crt_t crt,
gnutls_x509_crq_t crq, const char * oid, unsigned flags);
π¦ ARGUMENTS π¦
the tea on every single parameter, let's go:
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. that's the glow-up destination, the cert getting the extension πgnutls_x509_crq_t crqβ holds a certificate request. yes she's holding it, she's the source of the extension π«Άconst char * oidβ the object identifier of the OID to copy. like, the literal OID string, copy it over verbatim plsunsigned flagsβ should be zero. that's it. zero. not one. zero. π
πΈ DESCRIPTION πΈ
so what does she actually do? This function will set the extension specify by oid from the given request to the certificate.
that's the whole vibe: extension lives in the crq, you name it by oid, it lands on the crt. periodt. π
π RETURNS π
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
so if you get a 0? slay, you ate. if you get a negative number? that's your sign something went sideways, go read it π
β SINCE β
3.5.1 β she's been iconic since way back, no cap.
π REPORTING BUGS π
found something cursed? tell the devs, they wanna know:
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, share the file, remix the file, just keep the receipt ok? π«Ά
π 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/
lowkey the Texinfo manual is the main character here, go check her out if the local docs ghosted you π
okay bestie that's the whole page, every flag, every arg, every word β nothing dropped, nothing invented, iykyk π
signed, sealed, delivered from the gnutls 3.8.13 era, dated right there in the footer, mwah π β¨
π¦ 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