gnutls_system_key_delete(3)

πŸ’– gnutls_system_key_delete β€” bestie's guide to yeeting a key pair πŸ’–

okay so this is from the gnutls manual, and we're talking about gnutls_system_key_delete (that's the (3) section btw, library functions, iykyk). buckle up, it's short but it's iconic πŸŽ€


✨ NAME ✨

gnutls_system_key_delete β€” an API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/system-keys.h>

int gnutls_system_key_delete(const char * cert_url, const char *
key_url);

no cap, that's the whole thing. she's petite πŸ¦‹


🫢 ARGUMENTS 🫢

  • const char * cert_url β€” the URL of the certificate πŸ“œ
  • const char * key_url β€” the URL of the key πŸ”‘

both of them are const char *, both of them are URLs, and yes bestie you need both. the certificate AND the key. they're a package deal fr fr πŸ’–


πŸ‘‘ DESCRIPTION πŸ‘‘

This function will delete the key and certificate pair.

that's it. that's the whole description. it literally just deletes the pair. the key, the certificate, gone. poof. πŸ’€βœ¨


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.

so 0 means slay, negative means something went wrong and you should go read your error handling code. not me ignoring return values… πŸ™ˆ


🌈 SINCE 🌈

3.4.0

she's been around since 3.4.0, so she's an elder in gnutls years but still serving πŸ‘‘


πŸ› REPORTING BUGS πŸ›

Report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org

if something's broken, tell the gnutls girlies at that email, and the home page is right there if you wanna vibe check the project 🫢


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.

translation: you can copy and share this file however you want, no royalty needed, just keep the copyright notice and this notice intact. periodt πŸ’…


πŸ”₯ 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, check your local /usr/share/doc/gnutls/ first, and if the HTML form isn't chilling in there, the manual link above has you covered 🌸


lowkey the whole page is just "delete the pair, return 0 on success, negative on fail" and honestly? we love an efficient queen πŸŽ€

that's the vibe check bestie, hope this helped πŸ’–βœ¨πŸ¦‹ β€” this was the gnutls manual page for gnutls_system_key_delete, version 3.8.13. mwah, go delete some keys responsibly πŸŒˆπŸ’œ

πŸ“¦ where this page comes from