gnutls_priority_set(3)
π gnutls_priority_set(3) π
okay bestie, welcome to the gnutls manual β this one's about gnutls_priority_set, an API function that decides what your TLS session is actually gonna vibe with. sit down, hydrate, let's go β¨
πΈ NAME πΈ
gnutls_priority_set β literally just an API function, that's the whole name, no notes π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
int gnutls_priority_set(gnutls_session_t session, gnutls_priority_t priority);
like. it's right there. two args, one int coming back. iconic behavior honestly π«Ά
π ARGUMENTS π
gnutls_session_t sessionβ bestie this one is agnutls_session_ttype. that's it, that's the whole lore πgnutls_priority_t priorityβ and this one is agnutls_priority_ttype. matching energy, we love consistency π
π¦ DESCRIPTION π¦
so what this does is set the priorities to use on the ciphers, the key exchange methods, and the macs. that's the whole assignment, and it ate π₯
but here's the part where you gotta lock in, bestie: this function is expected to be called once per session. one time. once. like a first impression, you don't get to redo it casually π
β οΈ and if you do call it multiple times β for example, before a re-handshake β the caller should make sure that any new settings are not incompatible with the original session. that's on you, not on gnutls. no cap. π
β RETURNS β
GNUTLS_E_SUCCESSon success π- or an error code on error, which is giving "we'll tell you that something went wrong, but the details are a whole other function" π
π REPORTING BUGS π
found a bug? not me manifesting that but okay, report it to <bugs@gnutls.org> π
home page, for when you wanna scroll instead: 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. (slay, no royalty, we love a generous license π«Ά)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
it's giving "the docs are elsewhere and they're cute". iykyk πΈ
and that's the whole page, bestie!! this was gnutls version 3.8.13, and no, the manual page footer didn't leave a date, so we're just gonna say it dropped sometime after 2023's copyright line β take it up with the Free Software Foundation fr fr πβ¨π¦
π¦ 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