gnutls_x509_crq_get_dn_oid(3)
π gnutls_x509_crq_get_dn_oid(3) π
okay so bestie, welcome to the gnutls manual, this one's a whole API function and honestly? it's giving "quiet little helper that just does its job." no cap. π
β¨ NAME β¨
gnutls_x509_crq_get_dn_oid β literally just an API function, that's the whole name, she's not hiding anything π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crq_get_dn_oid(gnutls_x509_crq_t crq, unsigned indx,
void * oid, size_t * sizeof_oid);
like yes, that's the shape of her. four args, one int coming back. iconic. β¨
π¦ ARGUMENTS π¦
gnutls_x509_crq_t crqβ bestie, this one should contain agnutls_x509_crq_ttype. that's the vibe. it's the certificate request you're poking at.unsigned indxβ specifies which DN OID to get. use(0)to get the first one. zero-indexed, we start counting from zero in this house πvoid * oidβ a pointer to a structure to hold the name. and get this: it may beNULLπ (iykyk, that's for the size-query trick)size_t * sizeof_oidβ initially holds the size ofoid. it comes in with an opinion and might leave with a new one.
π DESCRIPTION π
This function will extract the requested OID of the name of the certificate request subject, specified by the given index.
so like, the subject of the cert request has a name, and that name is made of OIDs, and you're grabbing the one at index indx. that's it. that's the function. main character energy but make it lowercase. π
β RETURNS β
GNUTLS_E_SHORT_MEMORY_BUFFERβ if the provided buffer is not long enough. not me getting caught with a tiny buffer π and in that case,* sizeof_oidwill be updated with the required size. so she tells you exactly how much room you need. helpful queen.- on success,
0is returned. slay. zero. the good number. π₯
heads up bestie: that return code is literally the "your buffer was too small" signal, so if you see it, don't panic β read * sizeof_oid, resize, and come back. π
πΈ REPORTING BUGS πΈ
Report bugs to <bugs@gnutls.org>.
Home page: https://www.gnutls.org
if something's broken, tell the gnutls girlies directly, they wanna know πβ¨
π 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, go off, copy it, remix it, just keep the receipts π§Ύπ)
π 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 flag, every arg, every return code, untouched and unbothered. π
this was gnutls_x509_crq_get_dn_oid(3) from the gnutls manual, version 3.8.13 β mwah, take care of her π«Άβ¨
π¦ 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