gnutls_certifi...ree_credentials(3)

πŸ’– gnutls_certifi...ree_credentials β€” the "okay bestie, we're DONE here" function πŸ’–

So this page lives in the gnutls manual, and it's all about gnutls_certificate_free_credentials. Say it with me: free the credentials. That's the whole vibe. Let's get into it. 🫢


✨ NAME ✨

gnutls_certificate_free_credentials β€” and it is, literally, an API function. That's the job. That's what it does. πŸ‘‘


🌸 SYNOPSIS 🌸

The way you summon it:

#include <gnutls/gnutls.h>

void
gnutls_certificate_free_credentials(gnutls_certificate_credentials_t
sc);

Notice the void β€” it gives you nothing back. No return value, no receipts, no drama. It just does the thing and dips. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_certificate_credentials_t sc β€” bestie, this is a gnutls_certificate_credentials_t type. That's the whole description. It's the thing you're about to free. Iconic in its simplicity, ngl.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's what's happening: this function frees a gnutls_certificate_credentials_t structure. Cleanup era. 🧹✨

But β€” and this is the part you cannot skip, pay attention β€” it does not free any temporary parameters associated with this structure. Like, ie RSA and DH parameters are not freed by this function. So if you were expecting this to sweep up everything, no ma'am. It frees the structure, and only the structure. Those params are somebody else's problem. πŸ’€

Not me thinking one free call handles everything… bestie it does not. Read the fine print. πŸ™ˆ

πŸ› REPORTING BUGS πŸ›

Found a bug? Spotted something cursed? Report bugs to <bugs@gnutls.org>.

And if you wanna vibe with the project more broadly: Home page: https://www.gnutls.org


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, and also legally binding, 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/

And that's the page, bestie! πŸŽ€ Brought to you by gnutls version 3.8.13 β€” go forth, free those credentials, and remember: the RSA and DH params stay. Mwah. πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from