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

NAME

6       gnutls_server_name_set  -  set a name indicator to be sent as an exten‐
7       sion
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

RETURNS

39       On success, GNUTLS_E_SUCCESS (zero) is  returned,  otherwise  an  error
40       code is returned.
41

REPORTING BUGS

43       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
44       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
45       http://www.gnu.org/gethelp/
46
48       Copyright © 2008 Free Software Foundation.
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium  without  royalty  provided  the  copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the info and gnutls programs are properly installed  at  your  site,
56       the command
57
58              info gnutls
59
60       should give you access to the complete manual.
61
62
63
64gnutls                               2.8.6           gnutls_server_name_set(3)
Impressum