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 bestie
  • gnutls_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_AVAILABLE back. 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:


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