gnutls_pkcs7_delete_crl(3)

✨ gnutls_pkcs7_delete_crl ✨

okay bestie, gather round, because today we're learning how to yeet a CRL out of a PKCS7 set and honestly? it's giving tiny function, huge main character energy πŸ’… this one lives in the gnutls manual, and it's about as straightforward as Unix gets, which is to say: slay, no drama, one job, done.


🌸 SYNOPSIS 🌸

#include <gnutls/pkcs7.h>

int gnutls_pkcs7_delete_crl(gnutls_pkcs7_t pkcs7, int indx);

like, that's the whole vibe right there πŸŽ€ you pull in the header, you call the thing, you get an int back. iconic.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pkcs7_t pkcs7 β€” the pkcs7 type, aka the actual set you're about to rummage around in 🧺
  • int indx β€” the index of the crl to delete. yes bestie, the index. we'll get to that. it matters. πŸ‘€

πŸ’– DESCRIPTION πŸ’–

so here's the tea: this function will delete a crl from a PKCS7 or RFC2630 crl set. that's it. that's the whole assignment. no cap. 🫢

and the one thing you cannot skip: Index starts from 0. zero. not one. zero. if you're out here counting like a human being starting at 1, you are going to delete the wrong crl and that is NOT the vibe. 😭

Returns 0 on success. ✨


πŸ‘‘ RETURNS πŸ‘‘

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. so if you get a negative number back, that's your sign that something went sideways, and you should go read what it means instead of just ignoring it like it's a group chat you muted. πŸ’€


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't be shy, tell the devs:

fr fr, they want to know. πŸ›


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 queen, share it, remix it, just keep the receipts. 🧚


🌈 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/

like, go read the whole manual, it's lowkey a masterpiece. πŸ“š


and that's a wrap on this one, bestie πŸŽ€ go forth, pass that zero-based index, delete your crls with confidence, and remember: GNUTLS_E_SUCCESS is 0 and so is your first index, and that is not a coincidence, it's just Unix being Unix. πŸ’…

gnutls 3.8.13, gnutls_pkcs7_delete_crl(3) β€” mwah, kisses, bye ✨

πŸ“¦ where this page comes from