1gnutls_server_name_set(3)           gnutls           gnutls_server_name_set(3)
2
3
4

NAME

6       gnutls_server_name_set  - Used to set a name indicator to be sent as an
7       extension
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int          gnutls_server_name_set(gnutls_session_t           session,
13       gnutls_server_name_type_t type, const void * name, size_t name_length);
14

ARGUMENTS

16       gnutls_session_t session
17                   is a gnutls_session_t structure.
18
19       gnutls_server_name_type_t type
20                   specifies the indicator type
21
22       const void * name
23                   is a string that contains the server name.
24
25       size_t name_length
26                   holds the length of name
27

DESCRIPTION

29       This  function  is to be used by clients that want to inform (via a TLS
30       extension mechanism) the server of the name  they  connected  to.  This
31       should be used by clients that connect to servers that do virtual host‐
32       ing.
33
34       The value of name depends on the ind type. In case of  GNUTLS_NAME_DNS,
35       an  ASCII or UTF-8 null terminated string, without the trailing dot, is
36       expected.  IPv4 or IPv6 addresses are not permitted.
37

REPORTING BUGS

39       Report bugs to <bug-gnutls@gnu.org>.
40
42       Copyright © 2006 Free Software Foundation.
43       Permission is granted to make and distribute verbatim  copies  of  this
44       manual  provided  the  copyright  notice and this permission notice are
45       preserved on all copies.
46

SEE ALSO

48       The full documentation for gnutls is maintained as  a  Texinfo  manual.
49       If  the  info  and gnutls programs are properly installed at your site,
50       the command
51
52              info gnutls
53
54       should give you access to the complete manual.
55
56
57
58gnutls                               1.6.3           gnutls_server_name_set(3)
Impressum