GNUTLS_X509_CRT_SET_CRL_DIST_POINTS2(3)
π gnutls_x509_crt_set_crl_dist_points2 β the manual page, but make it make sense β¨
okay bestie, gather round, because we're diving into the gnutls manual (you know, the TLS library that's lowkey carrying half the internet) and today's main character is gnutls_x509_crt_set_crl_dist_points2. yes it's a long name. no we're not shortening it. it's giving "I have a very specific job and I do it flawlessly" π
πΈ NAME πΈ
gnutls_x509_crt_set_crl_dist_points2 β an API function, periodt. that's it, that's the name, she's long and she's iconic π
π¦ SYNOPSIS π¦
first things first, you gotta pull in the header or nothing works, no cap:
#include <gnutls/x509.h>
int gnutls_x509_crt_set_crl_dist_points2(gnutls_x509_crt_t crt,
gnutls_x509_subject_alt_name_t type, const void * data, unsigned int
data_size, unsigned int reason_flags);
look at those five little parameters holding hands π«Ά adorable. now let's meet them one by one.
β¨ ARGUMENTS β¨
gnutls_x509_crt_t crtβ the certificate you're working with, of typegnutls_x509_crt_t. she's the star of the show, the one getting a brand new extension. main character energy fr πgnutls_x509_subject_alt_name_t typeβ this one's one of thegnutls_x509_subject_alt_name_tenumerations. pick your fighter, bestie, it's a whole enum out here πconst void * dataβ the actual data you wanna set. the payload. the moment. the vibe πunsigned int data_sizeβ the size of that data, because we're not out here guessing how many bytes we brought to the party πunsigned int reason_flagsβ the revocation reasons. yes, reasons, plural, it's giving very "we have receipts" π
πΊ DESCRIPTION πΊ
so what does she actually do?? she sets the CRL distribution points certificate extension on your certificate. that's the whole thing. one function, one extension, zero drama. literally doing exactly what the name says (a rarity, honestly, we love a self-aware API) β¨π¦
if you don't know what a CRL distribution point is, don't worry, this page isn't gonna gatekeep an explanation that isn't here either. it sets the extension. that's the tea β
π RETURNS π
- if everything goes gorgeously:
GNUTLS_E_SUCCESS(which is0, bestie, zero, the good number) π - if not: a negative error value. and you will know, because negative is never subtle π
β SINCE β
2.6.0 β she's been here since 2.6.0, so she's an elder, a veteran, a legend who's been slaying since before some of y'all were even compiling π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the gnutls girlies directly:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π COPYRIGHT π
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. (translation: go forth and share, just keep the receipts attached, iykyk π«Ά)
π 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, actually visit it. the docs are right there. go get your knowledge, queen π§
and that's the page, bestie!! stay safe out there setting those CRL distribution points, and remember: negative return values are not a personality trait, they're a to-do list πβ¨
β signed off with love from the gnutls manual, version 3.8.13 ππ
π¦ 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