gnutls_x509_crl_set_next_update(3)

πŸ’… gnutls_x509_crl_set_next_update β€” bestie, let's set when your CRL gets its next glow-up

okay so this one lives in the gnutls manual, and it's genuinely one of the chillest little API functions you'll ever meet. it's giving "small but mighty". let's get into it πŸŽ€


✨ NAME ✨

gnutls_x509_crl_set_next_update β€” the API function that tells your CRL when it should next be updated πŸ¦‹


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_set_next_update(gnutls_x509_crl_t crl, time_t
exp_time);

like yes, that's the whole thing. two args, one int back. no cap. ✨


🫢 ARGUMENTS 🫢

  • gnutls_x509_crl_t crl β€” this one should contain a gnutls_x509_crl_t type. it's the CRL you're about to touch, bestie, so pls make sure it's actually a CRL and not vibes πŸ’€
  • time_t exp_time β€” The actual time. literally just hand over the time you want. that's it. that's the arg. πŸ•

πŸ’– DESCRIPTION πŸ’–

so the way this works: this function will set the time this CRL will be updated. that's the whole job, and it does it fabulously. πŸ’…

and here's the tea β€” this is an optional value to be set on a CRL. you can literally just omit this call when you're generating a CRL and everything will be fine. it's optional-optional. lowkey freeing, honestly. πŸ•ŠοΈ

⚠️ but wait, storytime: Prior to GnuTLS 3.5.7, setting a nextUpdate field was required in order to generate a CRL. so if you're time-traveling back to old GnuTLS, you had to set this. mandatory. no skips. periodt. πŸ‘‘

⭐ RETURNS ⭐

  • on success you get GNUTLS_E_SUCCESS (0) β€” iconic, we love a zero πŸŽ‰
  • otherwise it returns a negative error value 😭 (check it, bestie, don't just assume)

🌈 REPORTING BUGS 🌈

found a bug? don't suffer in silence, tell the gnutls girlies:


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 it's legal to share, just keep the receipts, 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, go visit:

https://www.gnutls.org/manual/

it's the main character of documentation. go read it. πŸ“šβœ¨


and that's the whole page, bestie!! this came from gnutls 3.8.13 and it's signed off as gnutls_x509_crl_set_next_update(3) β€” go forth and set those update times, you absolute icon πŸ¦‹πŸ’œπŸŒΈ
πŸ“¦ where this page comes from