Function esp_idf_svc::hal::sys::mbedtls_ssl_conf_alpn_protocols
source ยท pub unsafe extern "C" fn mbedtls_ssl_conf_alpn_protocols(
conf: *mut mbedtls_ssl_config,
protos: *mut *const i8,
) -> i32
Expand description
\brief Set the supported Application Layer Protocols.
\param conf SSL configuration \param protos Pointer to a NULL-terminated list of supported protocols, in decreasing preference order. The pointer to the list is recorded by the library for later reference as required, so the lifetime of the table must be at least as long as the lifetime of the SSL configuration structure.
\return 0 on success, or MBEDTLS_ERR_SSL_BAD_INPUT_DATA.