Blame doc/functions/gnutls_alpn_get_selected_protocol
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_alpn_get_selected_protocol} (gnutls_session_t @var{session}, gnutls_datum_t * @var{protocol})
|
|
Packit Service |
4684c1 |
@var{session}: is a @code{gnutls_session_t} type.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{protocol}: will hold the protocol name
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function allows you to get the negotiated protocol name. The
|
|
Packit Service |
4684c1 |
returned protocol should be treated as opaque, constant value and
|
|
Packit Service |
4684c1 |
only valid during the session life.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The selected protocol is the first supported by the list sent
|
|
Packit Service |
4684c1 |
by the client.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned,
|
|
Packit Service |
4684c1 |
otherwise a negative error code is returned.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Since 3.2.0
|
|
Packit Service |
4684c1 |
@end deftypefun
|