Make input parameter const
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
28e9d86cbc
commit
39b7bba8a0
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue