pub unsafe extern "C" fn mbedtls_pk_write_pubkey_pem(
    ctx: *const mbedtls_pk_context,
    buf: *mut c_uchar,
    size: usize
) -> c_int
Expand description

\brief Write a public key to a PEM string

\param ctx PK context which must contain a valid public or 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