gnutls_x509_crl_list_import2(3)

πŸ’– gnutls_x509_crl_list_import2 β€” the "turn a whole pile of CRLs into gnutls objects" function

okay bestie, sit down, hydrate, because this one lives in the gnutls manual and it's about importing a list of CRLs all at once instead of doing them one by one like a peasant. πŸŽ€


✨ NAME ✨

gnutls_x509_crl_list_import2 β€” it's an API function, no cap. That's literally the whole name section, she's a minimalist. πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_list_import2(gnutls_x509_crl_t ** crls, unsigned int
* size, const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format,
unsigned int flags);

look at her. five arguments. main character energy fr fr. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crl_t ** crls β€” this lil pointer is gonna contain the parsed crl list when we're done. she comes home with a whole friend group. 🫢
  • unsigned int * size β€” and this one will contain the size of the list. it's the headcount. the attendance sheet. the "how many of y'all showed up" number. πŸ‘‘
  • const gnutls_datum_t * data β€” the CRL data. the raw stuff. the actual content before the glow-up. πŸ’œ
  • gnutls_x509_crt_fmt_t format β€” one of DER or PEM. pick your girl, you can't have both. πŸŽ€
  • unsigned int flags β€” must be (0) or an OR'd sequence of gnutls_certificate_import_flags. so either a flat zero, or you start OR-ing those import flags together. no random numbers, bestie, that's not the vibe. πŸ’…

🌈 DESCRIPTION 🌈

This function will convert the given CRL list to the native gnutls_x509_crl_t format. Basically it takes your CRL list and makes it speak gnutls natively. ✨

The output will be stored in crls. And here's the cute part β€” they will be automatically initialized. you don't gotta do the setup, she comes pre-glow-up'd. πŸ˜­πŸ’–

If the Certificate is PEM encoded it should have a header of "X509 CRL". β€” periodt. no header, no entry. the header is the invite to the party and there's no plus-ones without it. πŸŽ€


⭐ RETURNS ⭐

It hands you back the number of certificates read β€” or, plot twist, a negative error value. πŸ’€ so if you get a negative number back, that's not a flex, that's a problem, check yourself. πŸ™ˆ


πŸ’« SINCE πŸ’«

3.0 β€” she's been iconic since 3.0. OG status. πŸ‘‘


πŸ”₯ REPORTING BUGS πŸ”₯

Found a bug? Report bugs to <bugs@gnutls.org>. πŸ›

Home page: https://www.gnutls.org β€” go say hi, she doesn't bite. 🌸


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, you can copy it, just keep the receipts attached. respect the elders. 🫢


🌟 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 β€” tragic, I know β€” visit

https://www.gnutls.org/manual/

she's got the whole lore over there, iykyk. πŸ“šβœ¨


and that's the whole page, bestie β€” gnutls manual, version 3.8.13, this page being gnutls_x509_crl_list_import2(3). go import those CRLs, you absolute icon. πŸŽ€πŸ’–πŸ¦‹ no cap.

πŸ“¦ where this page comes from