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 a gnutls_session_t type, 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 Β© 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