gnutls_x509_crl_set_crt(3)

πŸ’… gnutls_x509_crl_set_crt β€” bestie, let's revoke a cert

okay so this one lives in the gnutls manual (that's the GNU TLS library, iykyk) and it's literally one of the CRL-building girlies. if you've ever wondered "how do I put a certificate on the naughty list", this is the function, no cap πŸ’€βœ¨


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crl_set_crt(gnutls_x509_crl_t crl, gnutls_x509_crt_t
crt, time_t revocation_time);

that's the whole vibe. three args, one int back. she's lowkey elegant πŸŽ€


🌸 ARGUMENTS 🌸

  • gnutls_x509_crl_t crl β€” this one should contain a gnutls_x509_crl_t type. like, it's the CRL you're editing. the actual list. the main character πŸ‘‘
  • gnutls_x509_crt_t crt β€” a certificate of type gnutls_x509_crt_t with the revoked certificate. yes bestie, this is the cert you're about to put on the list πŸ™ˆ
  • time_t revocation_time β€” the time this certificate was revoked. when did the betrayal happen, timestamps only fr fr ⏰

πŸ’– DESCRIPTION πŸ’–

okay so the way this works: this function will set a revoked certificate's serial number to the CRL. that's it. that's the whole job. you hand her a CRL, you hand her a cert, you tell her when it got revoked, and she slots that serial number right into the list.

short king behavior honestly. does exactly one thing and does it 🫢


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (that's 0, the good one) is returned. otherwise you get a negative error value and, like, it's giving "something went wrong" 😭

so like: check for zero. if it's not zero, bestie, it's not a success.


🌈 REPORTING BUGS 🌈

found a bug? not you being the QA legend we all needed πŸ’… report bugs to bugs@gnutls.org.

home page is right here: https://www.gnutls.org β€” go be nosy, she's worth it.


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. so like, take her, remix her, just keep the receipts ok πŸŽ€


πŸ¦‹ 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, then bestie you gotta go here instead:

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

and that's the page!! this is gnutls version 3.8.13 talking, signing off with a little sparkle ✨ mwah, go revoke something responsibly πŸ’œ

πŸ“¦ where this page comes from