gnutls_pkcs7_get_crt_count(3)
π gnutls_pkcs7_get_crt_count β the gnutls girlies' guide π
okay bestie, welcome to the gnutls manual, section 3, and today's main character is a lil function that just... counts certificates for you. no cap. let's get into it π¦
β¨ NAME β¨
gnutls_pkcs7_get_crt_count β it's an API function, and its whole vibe is counting. that's it. that's the job. π
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_get_crt_count(gnutls_pkcs7_t pkcs7);
like, look at her. one include, one function, zero drama. π
π«Ά ARGUMENTS π«Ά
gnutls_pkcs7_t pkcs7β bestie, this one should contain agnutls_pkcs7_ttype. that's the whole assignment. it's the thing you're counting the certs in, so pls make sure it's actually that type and not, like, a random void pointer you found on the floor. π
π DESCRIPTION π
so what does she actually do?? this function will return the number of certificates in the PKCS7 or RFC2630 certificate set. that's it!! that's the tea!! you hand her a PKCS7 thing, she tells you how many certs are chilling inside it. lowkey the most useful girl in the whole header file. β
π₯ RETURNS π₯
- on success, a positive number is returned (yay, certs!! π)
- otherwise, a negative error value (π not the vibe, go check your error handling bestie)
fr fr: negative means something went wrong, so don't just slap this in a for loop without checking. iykyk. π
π REPORTING BUGS π
found a bug? not on my watch. report that thing:
- 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: you can share this file, just keep the receipts. iconic behavior honestly. π)
π 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, the whole lore is right there. go read it. it's giving educational. π§
mwah π that's the page!! this was gnutls, version 3.8.13, and yes this manpage really is titled gnutls_pkcs7_get_crt_count(3) β go count some certs, bestie, 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