| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_srtp_set_profile_direct} (gnutls_session_t @var{session}, const char * @var{profiles}, const char ** @var{err_pos}) |
| 6 |
@var{session}: is a @code{gnutls_session_t} type. |
| 7 |
|
| 8 |
@var{profiles}: is a string that contains the supported SRTP profiles, |
| 9 |
separated by colons. |
| 10 |
|
| 11 |
@var{err_pos}: In case of an error this will have the position in the string the error occurred, may be NULL. |
| 12 |
|
| 13 |
This function is to be used by both clients and servers, to declare |
| 14 |
what SRTP profiles they support, to negotiate with the peer. |
| 15 |
|
| 16 |
@strong{Returns:} On syntax error @code{GNUTLS_E_INVALID_REQUEST} is returned, |
| 17 |
@code{GNUTLS_E_SUCCESS} on success, or an error code. |
| 18 |
|
| 19 |
Since 3.1.4 |
| 20 |
@end deftypefun |