gnutls_srtp_set_profile_direct(3)

✨ gnutls_srtp_set_profile_direct(3) ✨

okay bestie, welcome to the gnutls manual πŸ’– this is the page for gnutls_srtp_set_profile_direct, and yes it's giving "I am a C function and I have opinions about SRTP profiles" πŸŽ€


🌸 NAME 🌸

gnutls_srtp_set_profile_direct β€” it's an API function, periodt πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

int gnutls_srtp_set_profile_direct(gnutls_session_t session, const char
* profiles, const char ** err_pos);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” bestie this is a gnutls_session_t type. that's the whole vibe of it. 🌈
  • const char * profiles β€” a string holding all the SRTP profiles you support, separated by colons. so like, a little colon-separated playlist of profiles 🎡
  • const char ** err_pos β€” if something goes wrong, this is where the position in the string where the error happened gets dropped. it's allowed to be NULL, no pressure 🫢

πŸ’– DESCRIPTION πŸ’–

so the way this works: both clients AND servers use this function. you use it to declare which SRTP profiles you support, and then you negotiate with the peer about it. that's it, that's the function. it's literally just "here's what I bring to the table, let's talk" energy πŸ‘‘


⭐ RETURNS ⭐

  • if there's a syntax error β†’ GNUTLS_E_INVALID_REQUEST comes back at you 😭
  • if everything's slay β†’ GNUTLS_E_SUCCESS πŸ’–
  • otherwise β†’ an error code, as error codes do
Since 3.1.4 β€” yes she's been around, she's iconic, she's not new here πŸ‘‘

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? spill it, don't gatekeep it:


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: use it, share 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, visit:

https://www.gnutls.org/manual/


and that's the page, bestie 🌸 this was the gnutls manual, version 3.8.13, and yeah this is the gnutls_srtp_set_profile_direct(3) page β€” go negotiate those SRTP profiles, you're the main character, no cap πŸ’…βœ¨

πŸ“¦ where this page comes from