Sha256: 5258cd2a399065ea6ce89ac7df27774fa2fe612cebb5af3bcb75cbb17d06111f

Contents?: true

Size: 1.97 KB

Versions: 4

Compression:

Stored size: 1.97 KB

Contents

.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
.TH "gnutls_server_name_get" 3 "2.4.2" "gnutls" "gnutls"
.SH NAME
gnutls_server_name_get \- Used to get the server name indicator send by a client
.SH SYNOPSIS
.B #include <gnutls/gnutls.h>
.sp
.BI "int gnutls_server_name_get(gnutls_session_t " session ", void * " data ", size_t * " data_length ", unsigned int * " type ", unsigned int " indx ");"
.SH ARGUMENTS
.IP "gnutls_session_t session" 12
is a \fBgnutls_session_t\fP structure.
.IP "void * data" 12
will hold the data
.IP "size_t * data_length" 12
will hold the data length. Must hold the maximum size of data.
.IP "unsigned int * type" 12
will hold the server name indicator type
.IP "unsigned int indx" 12
is the index of the server_name
.SH "DESCRIPTION"
This function will allow you to get the name indication (if any),
a client has sent. The name indication may be any of the enumeration
gnutls_server_name_type_t.

If \fItype\fP is GNUTLS_NAME_DNS, then this function is to be used by servers
that support virtual hosting, and the data will be a null terminated UTF\-8 string.

If \fIdata\fP has not enough size to hold the server name GNUTLS_E_SHORT_MEMORY_BUFFER
is returned, and \fIdata_length\fP will hold the required size.

\fIindex\fP is used to retrieve more than one server names (if sent by the client).
The first server name has an index of 0, the second 1 and so on. If no name with the given
index exists GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
.SH "REPORTING BUGS"
Report bugs to <bug-gnutls@gnu.org>.
.SH COPYRIGHT
Copyright \(co 2008 Free Software Foundation.
.br
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
.SH "SEE ALSO"
The full documentation for
.B gnutls
is maintained as a Texinfo manual.  If the
.B info
and
.B gnutls
programs are properly installed at your site, the command
.IP
.B info gnutls
.PP
should give you access to the complete manual.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glib2-1.1.8-x86-mingw32 vendor/local/share/man/man3/gnutls_server_name_get.3
glib2-1.1.7-x86-mingw32 vendor/local/share/man/man3/gnutls_server_name_get.3
glib2-1.1.6-x86-mingw32 vendor/local/share/man/man3/gnutls_server_name_get.3
glib2-1.1.5-x86-mingw32 vendor/local/share/man/man3/gnutls_server_name_get.3