GNUTLS_X509_EXT_EXPORT_CRL_DIST_POINTS(3)
π gnutls_x509_ext_export_crl_dist_points β bestie edition π
okay so this is a page from the gnutls manual, and today's main character is gnutls_x509_ext_export_crl_dist_points(3). it's giving "I turn your CRL distribution points into raw bytes" and honestly? iconic. let's get into it π
β¨ NAME β¨
gnutls_x509_ext_export_crl_dist_points β an API function, no cap. that's the whole name, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_export_crl_dist_points(gnutls_x509_crl_dist_points_t
cdp, gnutls_datum_t * ext);
like yes bestie, one include and one function call and you're literally in business β¨
π¦ ARGUMENTS π¦
gnutls_x509_crl_dist_points_t cdpβ a pointer to an initialized CRL distribution points. key word: initialized. don't be handing me a random uninitialized struct, i'm begging πgnutls_datum_t * extβ the DER-encoded extension data. and listen, this one comes with a chore attached: it must be freed usinggnutls_free(). yes, must. not "should", not "whenever", MUST. the way that memory will just leak if you don't... π
π DESCRIPTION π
so what does this actually do? it converts the provided policies into a certificate policy DER encoded extension, and that extension's OID is 2.5.29.31. that's the magic number, that's the assignment, periodt π₯
also, quick heads up: the ext data gets allocated using gnutls_malloc(). so it's gnutls's memory, and it wants to be freed gnutls's way. matching sets only, bestie π«Ά
β RETURNS β
- on success you get
GNUTLS_E_SUCCESS(0) β slay, we love a zero π - otherwise you get a negative error value β not slay, go read it and figure out what happened π
π SINCE π
3.3.0 β this has been around since 3.3.0, so it's been serving looks for a minute. veteran behaviour π
π§ REPORTING BUGS π§
found a bug? spill it, don't sit on it:
- report bugs to <bugs@gnutls.org>
- home page: https://www.gnutls.org
we don't gatekeep problems here π
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
and the license, verbatim because we respect the paperwork: 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. no royalty, no drama, just vibes β¨
π 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 genuinely go look, it's right there π¦
lowkey important reminder: free thatextwithgnutls_free(). i will know. the memory allocator will know. π
okay that's the whole page bestie, you ate it, you understood it, you're basically a PKI girlie now π
this was gnutls 3.8.13, from the gnutls manual β gnutls_x509_ext...crl_dist_points(3). mwah, bye ππ
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms