GNUTLS_X509_TRUST_LIST_VERIFY_CRT(3)
β¨ NAME β¨
gnutls_x509_trust_list_verify_crt β bestie, it's the API function that checks whether your cert is actually valid π
This one lives in the gnutls manual, section 3, and honestly? she's kind of a big deal.
π SYNOPSIS π
#include <gnutls/x509.h>
int gnutls_x509_trust_list_verify_crt(gnutls_x509_trust_list_t list,
gnutls_x509_crt_t * cert_list, unsigned int cert_list_size, unsigned int
flags, unsigned int * voutput, gnutls_verify_output_function func);
okay so that's the whole signature, no notes, iconic π
πΈ ARGUMENTS πΈ
gnutls_x509_trust_list_t listβ literally just the list. the trust list. that's her π«Άgnutls_x509_crt_t * cert_listβ the certificate list that's getting verified, bestie. this is the whole point β¨unsigned int cert_list_sizeβ the size of that certificate list. yes queen, tell me how many πunsigned int flagsβ flags that may be used to change the verification algorithm. you use the OR of thegnutls_certificate_verify_flagsenumerations. so like, smash them together with|πunsigned int * voutputβ this lil pointer will hold the certificate verification output. she's an out-param, she's doing her job πgnutls_verify_output_function funcβ if this is non-null, it'll get called on each chain element verification with the output. a callback! main character energy fr fr π
π¦ DESCRIPTION π¦
okay so this function will try to verify the given certificate and return its status. simple as that π
the voutput parameter will hold an OR'ed sequence of gnutls_certificate_status_t flags β so it's like a little mood board of everything that went down during verification π
the details of the verification are the same as in gnutls_x509_trust_list_verify_crt2(). so if you want the deep lore, that's where it lives, iykyk β¨
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise you get a negative error value, which is giving "not today bestie" π
π SINCE π
3.0 β she's been around since 3.0, an absolute elder stateswoman of the API, we stan a legacy queen π
π REPORTING BUGS π
found something cursed? report bugs to <bugs@gnutls.org> π§
home page: https://www.gnutls.org β go say hi π«Ά
π 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, you can absolutely share this around, just keep the receipts, no cap π
π₯ 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/
ngl the fastest way to actually get this function is to read gnutls_x509_trust_list_verify_crt2() too, since the details are literally the same. obsessed with the consistency fr fr β¨
and that's the whole page, bestie β gnutls 3.8.13, dated gnutls_x509_trust_list_verify_crt(3), mwah π thanks for reading, go verify some certs, slay π
π¦ 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