gnutls_dh_get_secret_bits(3)
π gnutls_dh_get_secret_bits(3) π
okay bestie, welcome to the gnutls corner of the man pages, this one's a little function with a big job and it's honestly so underrated π«Ά
β¨ NAME β¨
gnutls_dh_get_secret_bits β it's an API function, periodt π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_dh_get_secret_bits(gnutls_session_t session);
π¦ ARGUMENTS π¦
gnutls_session_t sessionβ bestie. it's a gnutls session. that's the whole vibe. it's the session you're asking about π
π DESCRIPTION π
so the way that this works is: this function hands you back the bits used in the last Diffie-Hellman key exchange with the peer. like, how many bits of secret y'all shook hands on. iconic behavior fr fr π₯
and lowkey important: it should be used for both anonymous and ephemeral Diffie-Hellman. both of them. no picking favorites π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned π
otherwise? an error code comes back instead π no in-between, no gray area, just the numbers.
π REPORTING BUGS π
found something sus? 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 like, go forth, but keep the receipts bestie π«Ά
π§ 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/
that's the plug, iykyk β¨
and that's the whole page, bestie π this was gnutls 3.8.13, signing off β stay hydrated, stay curious, and go read your DH bits ππ
π¦ 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