gnutls_sign_set_secure(3)
β¨ gnutls_sign_set_secure β¨
okay so bestie, welcome to gnutls_sign_set_secure(3) π
this is a lil function from the gnutls manual, and it's here to let you flip the secure/insecure vibe of a sign algorithm system-wide. yes it's niche. yes it's powerful. no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_sign_set_secure(gnutls_sign_algorithm_t sign, unsigned int secure);
π ARGUMENTS π
gnutls_sign_algorithm_t signβ the sign algorithm in question, aka the lil guy you're about to vibe-check πunsigned int secureβ whether to mark the sign algorithm secure. like, do we stan it or not π«Ά
π DESCRIPTION π
So here's the tea β: this function modifies the previous system-wide setting that marked sign as secure or insecure. Basically you're coming in and editing the group chat settings that were already set.
But bestie, there are rules. You're only allowed to call this function if:
- allowlisting mode is set in the configuration file, AND
- the system-wide TLS priority string has not been initialized yet
so if you missed the window, that's a you problem, not mine π
The intended usage? Giving applications a way to expressly deviate from the distribution or site defaults inherited from the configuration file. like, the distro set a vibe, and you're respectfully saying "actually, no π ". And the modification is composable with further modifications performed through the priority string mechanism, so it plays nice with the other tweaks, slay.
π¨ NOT THREAD-SAFE ALERT π¨ this function is not thread-safe and is intended to be called in the main thread at the beginning of the process execution. do not be out here calling it from random threads mid-process, that's giving chaos energy π
And here's a sneaky lil gotcha, pay attention: even when secure is true, sign is not marked as secure for the use in certificates. nope. absolutely not. If you want it marked secure for certificates too, you gotta call gnutls_sign_set_secure_for_certs() as well. two calls, one dream, iykyk β¨
π¦ RETURNS π¦
0on success π- negative error code otherwise π
β SINCE β
3.7.3 β an icon, honestly π
π REPORTING BUGS π
Found a bug? don't be shy, tell the gnutls girlies:
- 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. generous queen behavior 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, visit:
https://www.gnutls.org/manual/
and that's the whole page bestie!! this was gnutls version 3.8.13, manual page gnutls_sign_set_secure(3) β go forth and configure responsibly, ily, 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