gnutls_x509_tr...et_issuer_by_dn(3)
π gnutls_x509_trust_list_get_issuer_by_dn β the API function that finds ur cert's issuer π
okay so bestie, welcome to the gnutls manual, and specifically to gnutls_x509_trust_list_get_issuer_by_dn(3). this one is a whole API function and it's lowkey doing the most important job ever: finding who signed ur cert. let's get into it π¦
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_trust_list_get_issuer_by_dn(gnutls_x509_trust_list_t
list, const gnutls_datum_t * dn, gnutls_x509_crt_t * issuer, unsigned
int flags);
like yes, it's giving long signature, but it's fine, we'll walk through every single piece π
π ARGUMENTS π
gnutls_x509_trust_list_t listβ bestie this is the list. the trust list u wanna go digging in.const gnutls_datum_t * dnβ this is the issuer's DN. the distinguished name we're hunting for πgnutls_x509_crt_t * issuerβ this lil guy will hold the issuer if there is any. > heads up: it should be deallocated after use, no cap, don't leave it hanging πunsigned int flagsβ just use zero. that's it. zero. that's the vibe π«Ά
πΈ DESCRIPTION πΈ
so what does this function actually do?? it will find the issuer with the given name, and return a copy of the issuer β and that copy must be freed using gnutls_x509_crt_deinit(). yes bestie, it's a copy, so u own it, so u clean it up. main character responsibility β¨
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise u get a negative error value. that's the whole story. zero = slay, negative = not slay π
π SINCE π
3.4.0 β an icon, a legend, been here since 3.4.0 periodt π
π REPORTING BUGS π
found a bug? don't suffer in silence bestie, report it:
- 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, share 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!! π this was gnutls 3.8.13, the gnutls_x509_tr...et_issuer_by_dn(3) manual page, and honestly? iconic. go find those issuers. ily, 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