![]() |
![]()
| ![]() |
![]()
NAMEgnutls_server_name_get - API function SYNOPSIS#include <gnutls/gnutls.h> int gnutls_server_name_get(gnutls_session_t session, void * data, size_t * data_length, unsigned int * type, unsigned int indx); ARGUMENTS
DESCRIPTIONThis 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 type 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 IDNA ACE string (prior to GnuTLS 3.4.0 it was a UTF-8 string). If data has not enough size to hold the server name GNUTLS_E_SHORT_MEMORY_BUFFER is returned, and data_length will hold the required size.
RETURNSOn success, GNUTLS_E_SUCCESS (0) is returned, on UTF-8 decoding error GNUTLS_E_IDNA_ERROR is returned, otherwise a negative error code is returned. REPORTING BUGSReport bugs to <bugs@gnutls.org>.
COPYRIGHTCopyright © 2001-2023 Free Software Foundation, Inc., and
others.
SEE ALSOThe full documentation for gnutls is maintained as a Texinfo manual. If the /usr/local/share/doc/gnutls/ directory does not contain the HTML form visit
|