gnutls_pkcs11_get_raw_issuer(3)
β¨ gnutls_pkcs11_get_raw_issuer β¨
okay bestie, this is a page from the gnutls manual, and it's about the function gnutls_pkcs11_get_raw_issuer. it's giving "find my cert's mom" energy and honestly? obsessed. π
πΈ NAME πΈ
gnutls_pkcs11_get_raw_issuer β it's an API function, babes. that's the whole name. no cap. β¨
π¦ SYNOPSIS π¦
so you gotta pull in the header first, like:
#include <gnutls/pkcs11.h>
and then the function itself, here's the literal signature, character for character, don't @ me:
int gnutls_pkcs11_get_raw_issuer(const char * url, gnutls_x509_crt_t
cert, gnutls_datum_t * issuer, gnutls_x509_crt_fmt_t fmt, unsigned int
flags);
π ARGUMENTS π
const char * urlβ a PKCS 11 url that identifies a token. it's the little address of where your stuff lives πgnutls_x509_crt_t certβ the certificate you're trying to find an issuer for. the main character, fr.gnutls_datum_t * issuerβ this one will hold the issuer if there is any, and it comes in an allocated buffer. so yes, memory is being handed to you, be normal about it π«Άgnutls_x509_crt_fmt_t fmtβ the format of the exported issuer. you pick the vibe. β¨unsigned int flagsβ use zero, or flags fromGNUTLS_PKCS11_OBJ_FLAG. that's the whole menu π
π DESCRIPTION π
so here's the tea: this function will return the issuer of a given certificate, if it is stored in the token. that "if" is doing a LOT of work, so pay attention.
by default, only issuers that are marked as trusted get returned. lowkey picky, but valid.
but if you want any issuer at all to come back, you gotta specify GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY in flags. that's the switch, bestie. flip it and she'll hand over whatever she's got. π₯
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. yay, zero, iconic. β¨
otherwise you get a negative error value, which is the C way of saying "we need to talk". π
π§ SINCE π§
3.2.7 β she's been around a minute, an elder actually. π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- 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. (translation: go off, 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/
reminder bestie: the issuer argument hands you an allocated buffer, so don't just walk away from it. that's not the move. π
sign-off time π this lil masterpiece comes to you from gnutls version 3.8.13, and yeah, the manual's name is just... gnutls. mwah. stay slay, read your man pages, hydrate. πβ¨π¦πΈπ
π«Άπ
π¦ 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