gnutls_x509_crl_dist_points_get(3)

πŸ’– gnutls_x509_crl_dist_points_get β€” the API function ✨

okay so bestie, this page lives in the gnutls manual (that's the manual name, if you were wondering 🫢) and it's all about pulling CRL distribution points out of a certificate-ish thing, one at a time, like you're scrolling a very specific list. let's go πŸ’…


✨ SYNOPSIS ✨

#include <gnutls/x509-ext.h>

int gnutls_x509_crl_dist_points_get(gnutls_x509_crl_dist_points_t cdp,
unsigned int seq, unsigned int * type, gnutls_datum_t * san, unsigned
int * reasons);

yes she takes five arguments, no she is not sorry about it 🌸


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_dist_points_t cdp β€” the CRL distribution points. like, the actual container we're reading from, the main character of this whole operation πŸ‘‘
  • unsigned int seq β€” which one do you want, bestie? the sequence number of the distribution point. 0 gets you the first one, 1 gets you the second, etc. counting starts at zero, as all good things do πŸ“
  • unsigned int * type β€” the name type of the corresponding name, and it's a gnutls_x509_subject_alt_name_t value. so she's telling you what kind of name you just got πŸ¦‹
  • unsigned int * reasons β€” the revocation reasons. it's an ORed sequence of flags from gnutls_x509_crl_reason_flags_t, so like, stack 'em up πŸ’«

🌈 DESCRIPTION 🌈

this function retrieves the individual CRL distribution points (OID 2.5.29.31, iykyk) that are contained in the provided type. that's it. that's the function. she gets you the goods ✨


⭐ RETURNS ⭐

  • on success, you get GNUTLS_E_SUCCESS (which is 0, slay)
  • if your index is out of bounds, it's giving GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE 😭
  • otherwise, you get a negative error value. not ideal, but at least she tells you πŸ’€

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't suffer in silence, report it to <bugs@gnutls.org>.

home page: 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.


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

ngl, that's the whole page. no cap πŸ’œ

and that's a wrap, bestie β€” this was gnutls version 3.8.13, page gnutls_x509_crl_dist_points_get(3), mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from