Blame doc/manpages/gnutls_server_name_set.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_server_name_set" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_server_name_set \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/gnutls.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_server_name_set(gnutls_session_t " session ", gnutls_server_name_type_t " type ", const void * " name ", size_t " name_length ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_session_t session" 12
Packit 549fdc
is a \fBgnutls_session_t\fP type.
Packit 549fdc
.IP "gnutls_server_name_type_t type" 12
Packit 549fdc
specifies the indicator type
Packit 549fdc
.IP "const void * name" 12
Packit 549fdc
is a string that contains the server name.
Packit 549fdc
.IP "size_t name_length" 12
Packit 549fdc
holds the length of name excluding the terminating null byte
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function is to be used by clients that want to inform (via a
Packit 549fdc
TLS extension mechanism) the server of the name they connected to.
Packit 549fdc
This should be used by clients that connect to servers that do
Packit 549fdc
virtual hosting.
Packit 549fdc
Packit 549fdc
The value of  \fIname\fP depends on the  \fItype\fP type.  In case of
Packit 549fdc
\fBGNUTLS_NAME_DNS\fP, a UTF\-8 null\-terminated domain name string,
Packit 549fdc
without the trailing dot, is expected.
Packit 549fdc
Packit 549fdc
IPv4 or IPv6 addresses are not permitted to be set by this function.
Packit 549fdc
If the function is called with a name of  \fIname_length\fP zero it will clear
Packit 549fdc
all server names set.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned,
Packit 549fdc
otherwise a negative error code is returned.
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP