gnutls_pkcs7_get_crl_raw2(3)
β¨ gnutls_pkcs7_get_crl_raw2 β the manual page, but make it cute β¨
okay bestie, so this is a page from the gnutls manual (that's the library, not the vibe) and today's main character is gnutls_pkcs7_get_crl_raw2. she's an API function. she's lowkey iconic. let's get into it π
πΈ NAME πΈ
gnutls_pkcs7_get_crl_raw2 β API function
π SYNOPSIS π
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_get_crl_raw2(gnutls_pkcs7_t pkcs7, unsigned indx,
gnutls_datum_t * crl);
π¦ ARGUMENTS π¦
gnutls_pkcs7_t pkcs7β the pkcs7 type, she's the container holding all the goods π«Άunsigned indxβ holds the index of the crl you wanna extract, so like, which one are we pulling bestiegnutls_datum_t * crlβ this is gonna contain the contents of the CRL, dropped into an allocated buffer β¨ (allocated!! so yes, that's yours to deal with later, no cap)
π DESCRIPTION π
so what does she actually do?? this function returns a DER encoded CRL from the PKCS7 or RFC2630 crl set. that's it, that's the whole vibe. the way she just hands you a DER encoded CRL like it's nothing π
π₯ RETURNS π₯
- when it goes well??
GNUTLS_E_SUCCESS(0) is returned. slay. π - when it doesn't?? you get a negative error value, booo π
- and the lil plot twist: after the last crl has been read, you're gonna get
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEback. so if you're looping through them, that's your cue to stop. periodt.
no cap: that last one is not a bug, it's literally just how you know you've hit the end of the crl set.
β SINCE β
3.4.2 β she's been here a minute, respect the elders π
π REPORTING BUGS π
found a bug? don't be shy, tell the gnutls girlies:
- 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. (yes bestie, keep the notice, it's free real estate π)
π 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_pkcs7_get_crl_raw2(3) from the gnutls manual, version 3.8.13 β go read the real thing if you need the deep lore, but honestly?? you ate this one. 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