gnutls_pkcs7_set_crl_raw(3)

πŸ’… gnutls_pkcs7_set_crl_raw(3) πŸ’…

okay bestie, so this one lives in the gnutls manual β€” it's the gnutls_pkcs7_set_crl_raw page and it's literally the glow-up your PKCS7 needs when you gotta slide a CRL in there. it's short, it's sweet, it's giving "tiny function, big responsibility". let's go 🫢


✨ NAME ✨

gnutls_pkcs7_set_crl_raw β€” it's an API function, periodt. no cap.


🌸 SYNOPSIS 🌸

#include <gnutls/pkcs7.h>

int gnutls_pkcs7_set_crl_raw(gnutls_pkcs7_t pkcs7, const gnutls_datum_t
* crl);

like yes, that's the whole vibe. include the header, call the function, slay πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pkcs7_t pkcs7 β€” bestie this is the pkcs7 type. it's the thing you're adding to. the main character, if you will πŸ‘‘
  • const gnutls_datum_t * crl β€” and this is the DER encoded crl that's getting added. DER encoded, okay? not PEM, not vibes, DER. πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way that this works is: this function will add a crl to the PKCS7 or RFC2630 crl set. that's it. that's the whole function. it takes your crl and it puts it in the set. iconic behaviour honestly ⭐


🌈 RETURNS 🌈

on success, GNUTLS_E_SUCCESS (0) is returned πŸ’– β€” otherwise you get a negative error value, which is your sign that something is NOT slaying and you should go read up on your error codes. no cap, check it. 😭


πŸ› REPORTING BUGS πŸ›

found a bug? don't be shy, report it, we're all ears 🫢


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 queen, keep the notice, it's the rules πŸ’…)


πŸ”₯ 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/

iykyk β€” go read the manual, it's good for you 🧚


and that's the whole page bestie!! this one's from gnutls version 3.8.13, source gnutls, and it's gnutls_pkcs7_set_crl_raw(3) β€” go forth and add those crls, you absolute legend πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from