gnutls_pkcs7_delete_crt(3)

πŸ’… gnutls_pkcs7_delete_crt β€” okay bestie, let's talk PKCS7 surgery

So this is a page from the gnutls manual, and it's all about one lil' function that yeets a certificate out of a set. The manual name is gnutls_pkcs7_delete_crt(3), iykyk. πŸ’–


✨ NAME ✨

gnutls_pkcs7_delete_crt β€” literally an API function, that's the whole name, no cap.


🌸 SYNOPSIS 🌸

#include <gnutls/pkcs7.h>

int gnutls_pkcs7_delete_crt(gnutls_pkcs7_t pkcs7, int indx);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_pkcs7_t pkcs7 β€” the pkcs7 type, bestie. it's the thing you're operating on.
  • int indx β€” the index of the certificate you wanna delete. yes, that certificate. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea β˜• β€” this function will delete a certificate from a PKCS7 or RFC2630 certificate set. That's it, that's the job.

And listen: the index starts from 0. Zero. Not one. Zero. Not me being dramatic, that's just how it is. πŸ™ˆ It returns 0 on success.


πŸ’œ RETURNS πŸ’œ

On success, GNUTLS_E_SUCCESS (which is 0, iconic) gets returned to you. Otherwise? You get a negative error value. So if your number is smol and sad, something went wrong. 😭


πŸ”₯ REPORTING BUGS πŸ”₯

Found a bug? Don't suffer in silence, bestie, report 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. Slay, honestly. πŸ’…


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

gnutls version 3.8.13, page gnutls_pkcs7_delete_crt(3) β€” that's the whole vibe check, bestie. go delete some certificates (by index, starting at zero, no cap) πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from