summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_srtp_set_profile_direct
blob: 60e284ef6a71e91c4c315833759b1a3187d47723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@deftypefun {int} {gnutls_srtp_set_profile_direct} (gnutls_session_t @var{session}, const char * @var{profiles}, const char ** @var{err_pos})
@var{session}: is a @code{gnutls_session_t}  type.

@var{profiles}: is a string that contains the supported SRTP profiles,
separated by colons.

@var{err_pos}: In case of an error this will have the position in the string the error occurred, may be NULL.

This function is to be used by both clients and servers, to declare
what SRTP profiles they support, to negotiate with the peer.

@strong{Returns:} On syntax error @code{GNUTLS_E_INVALID_REQUEST}  is returned,
@code{GNUTLS_E_SUCCESS}  on success, or an error code.

Since 3.1.4
@end deftypefun