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 a gnutls_session_t type. 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:


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