1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

mbedtls_ecp_write_key(): deprecate the old function

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2024-02-19 16:50:39 +01:00
parent 84b9f1b039
commit c0f7a8680f
4 changed files with 19 additions and 4 deletions

View File

@ -3302,6 +3302,7 @@ cleanup:
/*
* Write a private key.
*/
#if !defined MBEDTLS_DEPRECATED_REMOVED
int mbedtls_ecp_write_key(mbedtls_ecp_keypair *key,
unsigned char *buf, size_t buflen)
{
@ -3332,6 +3333,7 @@ cleanup:
return ret;
}
#endif /* MBEDTLS_DEPRECATED_REMOVED */
int mbedtls_ecp_write_key_ext(mbedtls_ecp_keypair *key,
size_t *olen, unsigned char *buf, size_t buflen)