Function esp_idf_svc::hal::sys::mbedtls_ssl_set_hs_own_cert
source ยท pub unsafe extern "C" fn mbedtls_ssl_set_hs_own_cert(
ssl: *mut mbedtls_ssl_context,
own_cert: *mut mbedtls_x509_crt,
pk_key: *mut mbedtls_pk_context,
) -> i32
Expand description
\brief Set own certificate and key for the current handshake
\note Same as \c mbedtls_ssl_conf_own_cert() but for use within the SNI callback or the certificate selection callback.
\note Passing null \c own_cert clears the certificate list for the current handshake.
\param ssl SSL context \param own_cert own public certificate chain \param pk_key own private key
\return 0 on success or MBEDTLS_ERR_SSL_ALLOC_FAILED