gnutls_hmac_deinit(3)
π gnutls_hmac_deinit(3) β the gnutls girlie's guide π
okay bestie, this page lives in the gnutls manual, and it's about the one thing nobody wants to do but everybody gotta do: cleaning up after yourself β¨
π NAME π
gnutls_hmac_deinit β it's an API function, and it's the goodbye kiss for your HMAC context π
β¨ SYNOPSIS β¨
#include <gnutls/crypto.h>
void gnutls_hmac_deinit(gnutls_hmac_hd_t handle, void * digest);
no cap, that's the whole thing. she takes two things and returns absolutely nothing (void girlies stay unbothered π
).
π«Ά ARGUMENTS π«Ά
gnutls_hmac_hd_t handleβ this is agnutls_hmac_hd_ttype. that's it, that's the description, that's literally what the manpage says. she's a handle, she's your context, she's the main character of this function πΈvoid * digestβ this is the output value of the MAC. so when you deinit, the MAC result lands here, bestie. don't forget to point her somewhere valid π¦
π DESCRIPTION π
so here's the tea: this function will deinitialize all resources occupied by the given hmac context. like, all of them. the hmac context has been holding onto stuff this whole time and this is where you let it go, gently, with love ποΈ
think of it as the "thanks for coming to my TED talk" moment. you built the context, you used it, you got your MAC out, and now you free the resources so nothing leaks. it's giving responsible memory management. it's giving adulting. obsessed π
bestie note: the MAC output goes into the digest argument, so make sure that's a real place to write before you call this. no dangling pointers in this house π
β SINCE β
2.10.0 β so she's been around a minute. vintage, but make it iconic π
π₯ REPORTING BUGS π₯
found something cursed? spill to the devs, they actually want to know:
- 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. like, free real estate, but 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/
go read it, it's lowkey a whole library and it's highkey worth it πβ¨
and that's the vibe check for today, bestie π
this page came to you courtesy of gnutls 3.8.13 β go forth, deinit your contexts, and hydrate. 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