1gnutls_alpn_set_protocols(3) gnutls gnutls_alpn_set_protocols(3)
2
3
4
6 gnutls_alpn_set_protocols - API function
7
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
16 gnutls_session_t session
17 is a gnutls_session_t structure.
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 GNUTLS_ALPN_*
27
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 If GNUTLS_ALPN_MAND is specified the connection will be aborted if no
33 matching ALPN protocol is found.
34
36 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
37 error code is returned.
38
39 Since 3.2.0
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: http://www.gnutls.org
44
45
47 Copyright © 2001-2014 Free Software Foundation, Inc..
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
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.3.29 gnutls_alpn_set_protocols(3)