Function esp_idf_hal::sys::mbedtls_pk_write_key_pem
source ยท pub unsafe extern "C" fn mbedtls_pk_write_key_pem(
ctx: *const mbedtls_pk_context,
buf: *mut u8,
size: usize,
) -> i32
Expand description
\brief Write a private key to a PKCS#1 or SEC1 PEM string
\param ctx PK context which must contain a valid private key. \param buf Buffer to write to. The output includes a terminating null byte. \param size Size of the buffer in bytes.
\return 0 if successful, or a specific error code