GNUTLS_X509_CRQ_GET_EXTENSION_DATA(3)
π gnutls_x509_crq_get_extension_data(3) π
okay bestie, welcome to the gnutls manual, we're doing a lil deep dive today π
β¨ NAME β¨
gnutls_x509_crq_get_extension_data β API function. she's a function, she's in the API, she gets extension data, periodt π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crq_get_extension_data(gnutls_x509_crq_t crq, unsigned
indx, void * data, size_t * sizeof_data);
yes the include is right there, don't forget it, she will not work without it π
β¨ ARGUMENTS β¨
gnutls_x509_crq_t crqβ this is supposed to contain agnutls_x509_crq_ttype. that's the whole assignment. she holds the crq, that's her job π«Άunsigned indxβ tells us which extension number we want. use(0)to get the very first one, like the opening track on the album π΅void * dataβ a pointer to a structure that's gonna hold the data. and bestie, it may be null. lowkey flexible of her β¨size_t * sizeof_dataβ this one initially holds the size ofoidπ
β¨ DESCRIPTION β¨
so this function will return the requested extension data in the certificate. the extension data gets stored as a string in the buffer you provided. simple, clean, iconic π
use gnutls_x509_crq_get_extension_info() to extract the OID and the critical flag.
and use gnutls_x509_crq_get_extension_by_oid() instead if you want to get data indexed by the extension OID rather than by sequence. like, different vibe, different lookup, iykyk π
β¨ RETURNS β¨
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error code, in case of an error. and if you've reached the last extension available, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. that's the "bestie there's no more, you've hit the end of the list" error π
β¨ SINCE β¨
2.8.0 β she's been around, she's a legacy queen π
β¨ 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. so like, go off, but 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, go visit
https://www.gnutls.org/manual/
like, just click it, she's right there π¦
and that's the whole page bestie, you ate π
this was gnutls version 3.8.13, from the gnutls_x509_crq..._extension_data(3) manual β mwah, go read some extension data, 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