Add new error code PLATFORM_ALLOC_FAILED for mbedtls_platform_memmove()
Signed-off-by: Piotr Nowicki <piotr.nowicki@arm.com>
diff --git a/include/mbedtls/platform_util.h b/include/mbedtls/platform_util.h
index d05c3c7..4e0f989 100644
--- a/include/mbedtls/platform_util.h
+++ b/include/mbedtls/platform_util.h
@@ -209,8 +209,8 @@
* \param src Source buffer where the data is being moved from.
* \param num The length of the buffers in bytes.
*
- * \return 0 if the operation was successful or -1 if memory allocation
- * failed.
+ * \return 0 if the operation was successful
+ * \return #MBEDTLS_ERR_PLATFORM_ALLOC_FAILED if a memory allocation failed
*/
int mbedtls_platform_memmove( void *dst, const void *src, size_t num );