gnutls_ecc_curve_set_enabled(3)
π gnutls_ecc_curve_set_enabled β the glow-up your ECC curves deserve π
okay bestie, this is one of those pages from the gnutls manual, and honestly? it's giving "quiet but powerful." let's get into it π¦
β¨ NAME β¨
gnutls_ecc_curve_set_enabled β it's an API function, and it's literally here to flip an ECC curve on or off before the party even starts π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_ecc_curve_set_enabled(gnutls_ecc_curve_t curve, unsigned int
enabled);
like, that's the whole entrance. short. iconic. no notes. π
π«Ά ARGUMENTS π«Ά
gnutls_ecc_curve_t curveβ bestie, this is the ECC curve in question. the one we're about to make a decision about β¨unsigned int enabledβ the vibe check: are we enabling this curve or not? π
π DESCRIPTION π
so here's the tea. this function modifies the previous system-wide setting that marked curve as enabled or disabled. that's it, that's the job π
but bestie, there are RULES. calling this function is allowed only if allowlisting mode is set in the configuration file, and only if the system-wide TLS priority string has not been initialized yet. no cap. π
the intended usage is to give applications a way to expressly deviate from the distribution or site defaults inherited from the configuration file. so if the defaults aren't it for you, this is how you say "not me, not today." and the best part? the modification is composable with further modifications performed through the priority string mechanism β so it stacks, it plays nice, it collaborates π
β οΈ IMPORTANT ONE: this function is not thread-safe. it is intended to be called in the main thread at the beginning of the process execution. so like... main character energy only, at the very start of the story. do not be out here calling it from a random thread halfway through, i'm begging π
β RETURNS β
0 on success, or a negative error code otherwise. slay when it's zero, sad little negative number when it's not π
π SINCE π
3.7.3 β been here since 3.7.3, a true veteran of the game β¨
π¦ REPORTING BUGS π¦
found a bug? don't suffer in silence, bestie, 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. (yes, that means keep the receipts. respect 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/
and that's the whole page, bestie π«Ά go forth and configure your curves responsibly.
signing off from the gnutls manual, version 3.8.13, page gnutls_ecc_curve_set_enabled(3) β mwah, take care of your main thread π
β¨
π¦ 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