table of contents
other versions
- wheezy-backports 3.3.8-6~bpo70+1
- jessie 3.3.8-6+deb8u5
- testing 3.5.8-5
- unstable 3.5.8-6
- experimental 3.5.13-1
gnutls_server_name_get(3) | gnutls | gnutls_server_name_get(3) |
NAME¶
gnutls_server_name_get - API functionSYNOPSIS¶
#include <gnutls/gnutls.h>ARGUMENTS¶
- gnutls_session_t session
- is a gnutls_session_t structure.
- void * data
- will hold the data
- size_t * data_length
- will hold the data length. Must hold the maximum size of data.
- unsigned int * type
- will hold the server name indicator type
- unsigned int indx
- is the index of the server_name
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.index 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.
RETURNS¶
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned.REPORTING BUGS¶
Report bugs to <bugs@gnutls.org>.COPYRIGHT¶
Copyright © 2001-2014 Free Software Foundation, Inc..SEE ALSO¶
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit3.3.8 | gnutls |