gnutls_set_default_priority(3)
β¨ gnutls_set_default_priority(3) β¨
okay bestie so this is a page from the gnutls manual, section 3 (library functions, iykyk) π
π NAME π
gnutls_set_default_priority β it's literally an API function, no cap β¨
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_set_default_priority(gnutls_session_t session);
πΈ ARGUMENTS πΈ
gnutls_session_t sessionβ bestie it's agnutls_session_ttype, that's the whole vibe π¦
π«Ά DESCRIPTION π«Ά
So what it does is set the default priority on the ciphers, the key exchange methods, and the macs. periodt π
And ngl this is the recommended method of setting the defaults β like, it's the one you wanna use β and the reason is lowkey iconic: it promotes consistency between applications that use GnuTLS, and it lets GnuTLS-using applications update their settings in par with the library. slay β¨
For client applications that require maximum compatibility, consider calling gnutls_session_enable_compatibility_mode() after this function. π
If an application wants to specify additional options to the priority string, consider using gnutls_set_default_priority_append() instead. π
And if you wanna let a user override the defaults (like, say, when a user interface or a configuration file is available), then the functions gnutls_priority_set_direct() or gnutls_priority_set() can be used. no gatekeeping here π
β RETURNS β
GNUTLS_E_SUCCESS on success, or an error code. that's it, that's the return π
π°οΈ SINCE π°οΈ
2.1.4 β a whole legend, fr fr π
π REPORTING BUGS π
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 bestie, go off, share the knowledge π«Ά)
π 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/
not me ending a manpage with a cute sign-off but here we are π this was gnutls 3.8.13, gnutls_set_default_priority(3), and you absolutely ate that read bestie β¨ππ¦πΈ
π¦ 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