Make input parameter const

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2024-01-02 17:56:54 +01:00
parent 28e9d86cbc
commit 39b7bba8a0
2 changed files with 2 additions and 2 deletions

View file

@ -1368,7 +1368,7 @@ int mbedtls_ecp_write_key(mbedtls_ecp_keypair *key,
* or the export for the given group is not implemented.
* \return Another negative error code on other kinds of failure.
*/
int mbedtls_ecp_write_public_key(mbedtls_ecp_keypair *key,
int mbedtls_ecp_write_public_key(const mbedtls_ecp_keypair *key,
int format, size_t *olen,
unsigned char *buf, size_t buflen);

View file

@ -3336,7 +3336,7 @@ cleanup:
/*
* Write a public key.
*/
int mbedtls_ecp_write_public_key(mbedtls_ecp_keypair *key,
int mbedtls_ecp_write_public_key(const mbedtls_ecp_keypair *key,
int format, size_t *olen,
unsigned char *buf, size_t buflen)
{