gnutls_srtp_set_profile(3)
π gnutls_srtp_set_profile π
okay bestie, welcome to the gnutls manual, this page is all about gnutls_srtp_set_profile β an API function, no cap. it's short, it's sweet, it's iconic, let's get into it β¨
πΈ SYNOPSIS πΈ
like, here's the vibe, literally just this:
#include <gnutls/gnutls.h>
int gnutls_srtp_set_profile(gnutls_session_t session,
gnutls_srtp_profile_t profile);
π ARGUMENTS π
gnutls_session_t sessionβ bestie, this is agnutls_session_ttype. that's the whole thing. it's the session, it's the moment, it's giving main character energy πgnutls_srtp_profile_t profileβ and this one? it's the profile id you wanna add. the profile. the id. to add. periodt π¦
β¨ DESCRIPTION β¨
okay so this function is for both clients and servers β everyone's invited to the party, no gatekeeping π β and what it does is let you declare what SRTP profiles you support, so you can negotiate with the peer. that's it. that's the whole function. talk your truth, let the peer know what you're about, negotiate, slay π
π₯ RETURNS π₯
- on success:
GNUTLS_E_SUCCESS(0) is returned. we love a zero. a zero is a win π - otherwise: a negative error code comes back, and that's the signal that something did NOT go to plan π
also lowkey important: this has been a thing Since 3.1.4 β so it's been holding it down for a minute π
π REPORTING BUGS π
found a bug? don't be shy, tell the whole class:
- 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.
(translation: share it, remix it, 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, bestie, just go here instead:
https://www.gnutls.org/manual/
iykyk π§
and that's the page!! this whole thing came to you courtesy of gnutls 3.8.13 β thanks for reading, ily, go negotiate some SRTP profiles, 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