GNUTLS_X509_EXT_IMPORT_CRL_DIST_POINTS(3)

πŸ’– gnutls_x509_ext_import_crl_dist_points β€” the API function, bestie πŸ’–

okay so real quick, this page lives in the gnutls manual (section 3, the library functions section, iykyk), and it's all about one lil function that goes and pulls the CRL distribution points out of a blob of DER. slay. let's get into it πŸŽ€


✨ NAME ✨

gnutls_x509_ext_import_crl_dist_points β€” it's an API function, periodt.


🌸 SYNOPSIS 🌸

#include <gnutls/x509-ext.h>

int gnutls_x509_ext_import_crl_dist_points(const gnutls_datum_t * ext,
gnutls_x509_crl_dist_points_t cdp, unsigned int flags);

like yes, that's the whole vibe. three args, one int coming back at you πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • const gnutls_datum_t * ext β€” bestie this is the DER encoded extension data. the raw bytes. the moment. that's what you're handing over.
  • gnutls_x509_crl_dist_points_t cdp β€” a pointer to an initialized CRL distribution points. key word: initialized. she needs to already exist before you start putting stuff in her 🫢
  • unsigned int flags β€” should be zero. that's it. that's the whole job. zero. nothing else. don't get creative 😭

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea: this function will extract the CRL distribution points extension β€” that's 2.5.29.31 for the OID girlies keeping score β€” and store it into the provided type. that's literally it. extract, store, done. iconic behavior honestly ✨


⭐ RETURNS ⭐

on success you get GNUTLS_E_SUCCESS (which is 0, the number we love to see), otherwise it's a negative error value. so like… if the number is negative, that's your sign. sad girl hours 😭


πŸŽ€ SINCE πŸŽ€

3.3.0 β€” she's been around a minute, a true veteran πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

found a bug? not me gatekeeping β€” go tell the people:


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, legally you gotta keep the receipt 🧾)


πŸ“ 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!! no notes, ate and left no crumbs πŸ’…βœ¨

cute lil sign-off: this was gnutls version 3.8.13, page gnutls_x509_ext...crl_dist_points(3) β€” mwah, go read some DER, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from