Function esp_idf_sys::mbedtls_pk_write_key_pem
source ยท pub unsafe extern "C" fn mbedtls_pk_write_key_pem(
ctx: *const mbedtls_pk_context,
buf: *mut c_uchar,
size: usize,
) -> c_int
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