Function esp_idf_svc::sys::mbedtls_ssl_config_defaults
source ยท pub unsafe extern "C" fn mbedtls_ssl_config_defaults(
conf: *mut mbedtls_ssl_config,
endpoint: i32,
transport: i32,
preset: i32,
) -> i32
Expand description
\brief Load reasonable default SSL configuration values. (You need to call mbedtls_ssl_config_init() first.)
\param conf SSL configuration context \param endpoint MBEDTLS_SSL_IS_CLIENT or MBEDTLS_SSL_IS_SERVER \param transport MBEDTLS_SSL_TRANSPORT_STREAM for TLS, or MBEDTLS_SSL_TRANSPORT_DATAGRAM for DTLS \param preset a MBEDTLS_SSL_PRESET_XXX value
\note See \c mbedtls_ssl_conf_transport() for notes on DTLS.
\return 0 if successful, or MBEDTLS_ERR_XXX_ALLOC_FAILED on memory allocation error.