gnutls_x509_crl_set_version(3)
β¨ NAME β¨
gnutls_x509_crl_set_version β the API function that sets a CRL's version number, bestie π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crl_set_version(gnutls_x509_crl_t crl, unsigned int
version);
π ARGUMENTS π
gnutls_x509_crl_t crlβ okay so this one should contain agnutls_x509_crl_ttype. that's literally its whole job. it's the CRL you're about to mess with π«Άunsigned int versionβ this holds the version number. and listen, for CRLv1 crls this must be 1. no negotiating, no vibes-based versioning, it's just 1. periodt π
πΈ DESCRIPTION πΈ
okay so this function will set the version of the CRL. the way that versioning works here: this must be one for CRL version 1, and so on. like, the number you pass is the version, and it maps directly. iykyk.
and here's the tea β β the CRLs generated by gnutls should have a version number of 2. so if you're hand-rolling your own version number and you're like "hmm what does gnutls do", the answer is 2. lowkey iconic of them.
π RETURNS π
on success, GNUTLS_E_SUCCESS (which is 0) is returned π₯³ otherwise you get a negative error value, which is the function's way of saying "not me failing on you" π
π REPORTING BUGS π
found a bug? spill it to <bugs@gnutls.org>.
home page, for the full lore: 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.
π 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, babe π§ this was the gnutls_x509_crl_set_version(3) entry from the gnutls manual, version 3.8.13. go set some versions, stay hydrated, and don't forget: CRLs generated by gnutls want a version number of 2 πβ¨
π¦ 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