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 a gnutls_x509_crl_t type. 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 Β© 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