gnutls_srtp_get_selected_profile(3)

✨ gnutls_srtp_get_selected_profile ✨

okay bestie, welcome to the gnutls manual, page for gnutls_srtp_get_selected_profile(3). this one's short and sweet and honestly kind of iconic πŸ’…


🌸 NAME 🌸

gnutls_srtp_get_selected_profile β€” it's an API function, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/gnutls.h>

int gnutls_srtp_get_selected_profile(gnutls_session_t session,
gnutls_srtp_profile_t * profile);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” it's a gnutls_session_t type. that's it, that's the whole vibe. your session, your girl 🌈
  • gnutls_srtp_profile_t * profile β€” this lil pointer is gonna hold the profile. it's the vessel. the container. the little basket where the answer goes 🧺✨

πŸ’– DESCRIPTION πŸ’–

so this function lets you get the negotiated SRTP profile. that's the one y'all agreed on during the handshake. like, the group chat voted and this is what won. and now you get to peek at the result πŸ‘€


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned πŸ’š. otherwise you get a negative error code back, which is the universe's way of saying "not today bestie" 😭

fr fr, 0 = slay, anything negative = go check that error code.

Since 3.1.4 β€” yeah she's been around a minute, an OG πŸ‘‘


πŸ’€ REPORTING BUGS πŸ’€

found a bug? spill it, not in my DMs tho β€” 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. (translation: go off, 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 whole page, bestie!! this was gnutls version 3.8.13, brought to you by the fine folks at gnutls β€” mwah, study it, love it, use it responsibly πŸ«ΆπŸ’–πŸŽ€

πŸ“¦ where this page comes from