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 agnutls_x509_crl_ttype. like, it's the CRL you're editing. the actual list. the main character πgnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_twith 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 π
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
- 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