GNUTLS_X509_CRQ_GET_ATTRIBUTE_BY_OID(3)
β¨ gnutls_x509_crq_get_attribute_by_oid β API function β¨
okay bestie, this one lives in the gnutls manual pages, and it's all about pulling attribute data out of a certificate request π like it's a lil treasure hunt but for DER-encoded bytes. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_get_attribute_by_oid(gnutls_x509_crq_t crq, const
char * oid, unsigned indx, void * buf,
size_t * buf_size);
π ARGUMENTS π
gnutls_x509_crq_t crqβ should contain agnutls_x509_crq_ttype. that's the whole vibe, it's the cert request you're digging through π¦const char * oidβ holds an Object Identifier in null-terminated string. yes bestie, a string, terminated by null, as the universe intended β¨unsigned indxβ In case multiple same OIDs exist in the attribute list, this specifies which to get, use (0) to get the first one. so like, if there's a whole squad of identical OIDs,0gets you the first one in line πvoid * bufβ a pointer to a structure to hold the attribute data (may beNULL). it can absolutely be NULL, she's flexible πsize_t * buf_sizeβ initially holds the size ofbuf. important: initially, so you tell her how big your buffer is first, got it? πΈ
π DESCRIPTION π
This function will return the attribute in the certificate request specified by the given Object ID. The attribute will be DER encoded β that's the format, no substitutions, periodt π₯
Attributes in a certificate request is an optional set of data appended to the request. Their interpretation depends on the CA policy. so basically: they're optional lil extras tacked onto the request, and what they actually mean is up to whatever the CA decided. iykyk π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. zero means slay, negative means something went sideways π
π«Ά REPORTING BUGS π«Ά
Found something cursed? 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.
π§ 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/
and that's the whole page bestie, every single flag and fact intact, nothing skipped, we ate π β¨
this was page gnutls_x509_crq_get_attribute_by_oid(3) from gnutls 3.8.13 β go read the Texinfo manual if you want more, love u bye ππ¦π
π¦ 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