Function s2n_tls_sys::s2n_get_server_name

source ·
pub unsafe extern "C" fn s2n_get_server_name(
    conn: *mut s2n_connection
) -> *const c_char
Expand description

Query the connection for the selected server name.

This can be used by a server to determine which server name the client is using. This function returns the first ServerName entry in the ServerNameList sent by the client. Subsequent entries are not returned.

@param conn The connection object being queried @returns The server name associated with a connection, or NULL if none is found.