gnutls_x509_policy_release(3)
β¨ gnutls_x509_policy_release β¨
okay bestie, welcome to the gnutls manual, section 3 β yes we're in the library pages now, it's giving very "I read headers for fun" energy and honestly? iconic π
πΈ NAME πΈ
gnutls_x509_policy_release β it's an API function, and its whole personality is cleanup. π§Ή
π SYNOPSIS π
#include <gnutls/x509.h>
void gnutls_x509_policy_release(struct gnutls_x509_policy_st * policy);
π¦ ARGUMENTS π¦
struct gnutls_x509_policy_st * policyβ a certificate policy, bestie. that's the thing you're about to free. π«Ά
π DESCRIPTION π
so basically this function deinitializes all memory associated with the provided policy β¨. like, every last byte it was holding? gone. released. not your problem anymore.
and the policy you're handing over here β the one you're yeeting into the void β is one that was allocated using gnutls_x509_crt_get_policy(). so like, if you didn't get it from there, this is not the vibe, okay? π¨
ngl this is the responsible-girlie move: you allocated it, you release it. no leaks, no regrets, periodt. π
β SINCE β
3.1.5 β old money, she's been here a minute π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the people:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π 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 basically: share it, remix it, just keep the receipts, fr fr)
π 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, go visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie π go forth and free your policies responsibly β¨
sign-off szn: this was gnutls version 3.8.13, page gnutls_x509_policy_release(3), and yes it's from that same lovely gnutls manual. mwah π
π¦ 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