gnutls_pubkey_export_dh_raw(3)
π gnutls_pubkey_export_dh_raw(3) π
okay bestie, so this one lives in the gnutls manual, and it's literally called gnutls_pubkey_export_dh_raw β it's an API function, no cap. let's get into it π«Ά
β¨ NAME β¨
gnutls_pubkey_export_dh_raw β API function πΈ
π SYNOPSIS π
#include <gnutls/abstract.h>
int gnutls_pubkey_export_dh_raw(gnutls_pubkey_t key, gnutls_dh_params_t
params, gnutls_datum_t * y, unsigned flags);
π¦ ARGUMENTS π¦
gnutls_pubkey_t keyβ this one holds the public key, like it's the main character holding the whole plot together πgnutls_dh_params_t paramsβ this will hold the Diffie-Hellman parameter. it's optional, but heads up: it must be initialized. so like, don't hand it over all unready, bestie, it needs its moment to be prepared first β¨gnutls_datum_t * yβ this one will hold they. that's it, that's the whole job πunsigned flagsβ flags fromgnutls_abstract_export_flags_t, so go pick your faves from there π
π« DESCRIPTION π«
so what this function does is it exports the Diffie-Hellman public key parameter that it found living inside the given public key. and the new parameter? it gets allocated using gnutls_malloc(), and then it's stored in the appropriate datum. very demure, very mindful, very allocated π
now, if you're trying to retrieve the other parameters β the ones that are common in both the public key and the private key β then you actually want gnutls_dh_params_export_raw() instead. different function, different vibe, don't mix them up π§
and this lil detail is important: this function allows for NULL parameters since 3.4.1. iconic behavior honestly π
β RETURNS β
you get GNUTLS_E_SUCCESS on success π β otherwise, a negative error code. so if it's negative, that's your sign something went sideways, and it's giving "not today" π
πΈ SINCE πΈ
3.8.2 π
π REPORTING BUGS π
found a bug? don't be shy, report it 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 π«Ά
π 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, then bestie, visit:
https://www.gnutls.org/manual/
and that's the whole page, fr fr β this was the gnutls manual, version 3.8.13, for gnutls_pubkey_export_dh_raw(3). slay, go export those Diffie-Hellman params π
β¨π
π¦ 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