GNUTLS_X509_CRT_GET_ISSUER_UNIQUE_ID(3)
π gnutls_x509_crt_get_issuer_unique_id π
okay bestie, so this one lives in the gnutls manual, section 3, and it's lowkey iconic. it's called gnutls_x509_crt_get_issuer_unique_id and it's literally just "hey, hand me that cert's issuerUniqueID please." that's the whole vibe. β¨
β¨ NAME β¨
gnutls_x509_crt_get_issuer_unique_id β API function π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_issuer_unique_id(gnutls_x509_crt_t crt, char *
buf, size_t * buf_size);
no cap, that's the whole signature. slay. π
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ bestie this is the certificate you're holding. the one we're snooping on. π«Άchar * bufβ user allocated memory buffer, and it's gonna hold the unique id. you allocate it, it fills it. teamwork. β¨size_t * buf_sizeβ size of the user allocated memory buffer on input, and on return it holds the actual size of the unique ID. so it's giving "two jobs, one pointer" energy. π
π DESCRIPTION π
This function will extract the issuerUniqueID value (if present) for the given certificate. note the "if present" β sometimes it's just not there, and that's okay, we don't shame. π
If the user allocated memory buffer is not large enough to hold the full subjectUniqueID, then a GNUTLS_E_SHORT_MEMORY_BUFFER error will be returned, and buf_size will be set to the actual length. so it's not a fail-fail, it's more like a "bestie your bag is too small, here's the real size, come back." π
β οΈ okay this part is important, listen up: this function had a bug prior to3.4.8that prevented the setting ofNULLbufto discover thebuf_size. To use this function safely with the older versions thebufmust be a valid buffer that can hold at least a single byte ifbuf_sizeis zero. like, literally at least one byte. do not skip this. i'm so serious. π
π RETURNS π
GNUTLS_E_SUCCESS on success, otherwise a negative error code. so like, if it's negative, that's your villain arc moment and you should go read the error. β
β SINCE β
2.12.0 β old money, honestly. been here since forever. π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org
(they wanna hear from you, bestie, so tell them. kindly. π«Ά)
π 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 π this came to you from gnutls version 3.8.13, and honestly? obsessed. go forth and get that issuer unique id. 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