mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Rename mbedtls_net_close() to mbedtls_net_free()
close() may be more meaningful, but free() is symmetric with _init(), and more consistent with all other modules
This commit is contained in:
@ -2157,7 +2157,7 @@
|
||||
#define mpi_write_string mbedtls_mpi_write_string
|
||||
#define net_accept mbedtls_net_accept
|
||||
#define net_bind mbedtls_net_bind
|
||||
#define net_close mbedtls_net_close
|
||||
#define net_close mbedtls_net_free
|
||||
#define net_connect mbedtls_net_connect
|
||||
#define net_recv mbedtls_net_recv
|
||||
#define net_recv_timeout mbedtls_net_recv_timeout
|
||||
|
@ -216,11 +216,11 @@ int mbedtls_net_recv_timeout( void *ctx, unsigned char *buf, size_t len,
|
||||
uint32_t timeout );
|
||||
|
||||
/**
|
||||
* \brief Gracefully shutdown the connection
|
||||
* \brief Gracefully shutdown the connection and free associated data
|
||||
*
|
||||
* \param ctx The socket to close
|
||||
* \param ctx The context to free
|
||||
*/
|
||||
void mbedtls_net_close( mbedtls_net_context *ctx );
|
||||
void mbedtls_net_free( mbedtls_net_context *ctx );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user