turtls_app_proto

Function turtls_app_proto 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn turtls_app_proto( tls_conn: *const TurtlsConn, ) -> *const c_char
Expand description

Returns a pointer to name of the negotiated application protocol.

The string is nul-terminated.

ยงSafety

tls_conn must be valid.

Lifetime: the returned pointer is valid for the entire lifetime of connection. If a new connection is created with the same allocation, pointer is still valid and will point to the new application protocol.