1gnutls_alpn_set_protocols(3)        gnutls        gnutls_alpn_set_protocols(3)
2
3
4

NAME

6       gnutls_alpn_set_protocols - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int     gnutls_alpn_set_protocols(gnutls_session_t    session,    const
12       gnutls_datum_t  *  protocols,  unsigned  protocols_size,  unsigned  int
13       flags);
14

ARGUMENTS

16       gnutls_session_t session
17                   is a gnutls_session_t type.
18
19       const gnutls_datum_t * protocols
20                   is the protocol names to add.
21
22       unsigned protocols_size
23                   the number of protocols to add.
24
25       unsigned int flags
26                   zero or a sequence of gnutls_alpn_flags_t
27

DESCRIPTION

29       This function is to be used by both clients and servers, to declare the
30       supported ALPN protocols, which are used during negotiation with peer.
31
32       See gnutls_alpn_flags_t description for the documentation of  available
33       flags.
34

RETURNS

36       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
37       error code is returned.
38
39       Since 3.2.0
40

REPORTING BUGS

42       Report bugs to <bugs@gnutls.org>.
43       Home page: http://www.gnutls.org
44
45
47       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
48       Copying and distribution of this file, with  or  without  modification,
49       are  permitted  in  any  medium  without royalty provided the copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The full documentation for gnutls is maintained as  a  Texinfo  manual.
54       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
55       visit
56
57       http://www.gnutls.org/manual/
58
59gnutls                               3.6.5        gnutls_alpn_set_protocols(3)
Impressum