gnutls_x509_crl_dist_points_set(3)

✨ gnutls_x509_crl_dist_points_set(3) ✨

okay bestie, we're in the gnutls manual, and today's main character is a little function called gnutls_x509_crl_dist_points_set. it's giving certificate-nerd, it's giving CRL distribution points, and honestly? it's kinda iconic. let's get into it πŸ’…


🌸 NAME 🌸

gnutls_x509_crl_dist_points_set β€” API function

no cap, that's the whole name. short, sweet, does exactly one thing. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/x509-ext.h>

int gnutls_x509_crl_dist_points_set(gnutls_x509_crl_dist_points_t cdp,
gnutls_x509_subject_alt_name_t type, const gnutls_datum_t * san,
unsigned int reasons);

so you gotta pull in <gnutls/x509-ext.h> first β€” don't forget it, she's essential, she's the vibe ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_dist_points_t cdp β€” the CRL distribution points themselves. this is the thing you're stuffing data into, your little container of destinies πŸ«™
  • gnutls_x509_subject_alt_name_t type β€” the type of the name (of gnutls_subject_alt_names_t). yes girl, that's literally what it says, the type of the name πŸ’€
  • const gnutls_datum_t * san β€” the point name data. the actual name bits go here.
  • unsigned int reasons β€” revocation reasons. this one's an ORed sequence of flags from gnutls_x509_crl_reason_flags_t, so you're stacking flags together with ORs, like friendship bracelets but for revocation reasons 🫢

πŸ’– DESCRIPTION πŸ’–

This function will store the specified CRL distribution point value the cdp type.

that's it. that's the whole job. she takes your distribution point and she puts it in the cdp thing. lowkey simple, highkey useful 🌈


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0), otherwise a negative error value.

so like β€” zero means you ate and left no crumbs πŸ‘‘. anything negative? that's a "not me getting an error" moment, and you should go check what went wrong πŸ™ˆ


🧚 SINCE 🧚

3.3.0

she's been around since 3.3.0, so she's a seasoned queen, not a new girl on the block πŸ’œ


πŸ“ REPORTING BUGS πŸ“

Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org

found a bug? don't just scream into the void, bestie. email the nice people at bugs@gnutls.org and also peek the home page at https://www.gnutls.org πŸ›πŸ’Œ


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.

so basically: you can copy and share this file, change it or not, in any medium, no royalty needed β€” just keep the copyright notice and this notice intact. respect the elders, keep the receipts 🫑✨


πŸ‘‘ 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/

like, if the HTML version isn't chilling in /usr/share/doc/gnutls/, just go straight to https://www.gnutls.org/manual/ β€” the full Texinfo manual is where all the lore lives πŸ“šπŸ’«


and that's the whole page, bestie!! this was gnutls version 3.8.13, and the page itself is gnutls_x509_crl_dist_points_set(3) β€” go forth and set those CRL distribution points, you absolute legend πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from