gnutls_sign_set_secure_for_certs(3)
π gnutls_sign_set_secure_for_certs β the manual page, but make it make sense π
okay bestie, so this is one of the gnutls pages, and it's a very specific little function. like, niche-niche. but we're gonna slay it anyway. π
β¨ NAME β¨
gnutls_sign_set_secure_for_certs β it's an API function, bestie. that's the whole name. π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_sign_set_secure_for_certs(gnutls_sign_algorithm_t sign,
unsigned int secure);
π¦ ARGUMENTS π¦
gnutls_sign_algorithm_t signβ the sign algorithm in question, the one we're talking about, the main character of this function π«unsigned int secureβ whether we're marking that sign algorithm as secure for certificates. yes or no, secure or not, that's the vibe check right there π
π DESCRIPTION π
okay so here's the tea. this function modifies the previous system-wide setting that marked sign as secure or insecure for use in certificates. like, you're going in and changing what was already decided. iconic behaviour, honestly. β¨
but β and this is the big but β calling this function is only allowed if allowlisting mode is set in the configuration file, AND only if the system-wide TLS priority string has not been initialized yet. so if you've already initialized that thing? nope. sorry bestie. π
the intended usage is to give applications a way to expressly deviate from the distribution or site defaults that they inherited from the configuration file. like, the distro said one thing, and your app is like "actually no, i'm built different." π and the modification is composable with further modifications performed through the priority string mechanism β they stack, they layer, they coexist. no cap. π«Ά
β οΈ IMPORTANT, FR FR: this function is not thread-safe. it is intended to be called in the main thread at the beginning of the process execution. do not be out here calling it from a random thread in the middle of everything, that's not the move. π
and now the part where you gotta read carefully, because the words are doing a lot:
- when
secureis true,signis marked as secure for any use β unlikegnutls_sign_set_secure(). π - otherwise (when
secureis not true), it is marked as insecure only for the use in certificates.
so if you want to mark it insecure for any uses, you need to use gnutls_sign_set_secure() instead. different function, different job. iykyk. π§
β RETURNS β
0 on success, or a negative error code otherwise. so basically: zero = we ate, negative = we did not eat. π
π SINCE π
3.7.3 β she's been around a minute, but she's still cute. πΈ
π REPORTING BUGS π
found a bug? report it, bestie, don't just sit on it:
- 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 off, just 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/
and that's the whole page, bestie. you now know everything there is to know about gnutls_sign_set_secure_for_certs. go forth and configure responsibly. π
this has been the gnutls manual, version 3.8.13 β mwah, bye, ily, go read the Texinfo manual if you want more. π β¨
π¦ 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