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:
Manuel Pégourié-Gonnard 2015-06-30 15:55:03 +02:00
parent 5db64328ab
commit 3d7d00ad23
18 changed files with 36 additions and 36 deletions

View file

@ -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
}