pub unsafe extern "C" fn mbedtls_ssl_config_defaults(
    conf: *mut mbedtls_ssl_config,
    endpoint: c_int,
    transport: c_int,
    preset: c_int
) -> c_int
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.