mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
Revert move of version.h to tf-psa-crypto libray
This commit moves version.h back into /include/mbedtls from tf-psa-crypto/drivers/builtin/include. This commit also changes the necessary build files and scripts to generate version_features.c Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
This commit is contained in:
32
library/version.c
Normal file
32
library/version.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Version information
|
||||
*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#if defined(MBEDTLS_VERSION_C)
|
||||
|
||||
#include "mbedtls/version.h"
|
||||
#include <string.h>
|
||||
|
||||
unsigned int mbedtls_version_get_number(void)
|
||||
{
|
||||
return MBEDTLS_VERSION_NUMBER;
|
||||
}
|
||||
|
||||
void mbedtls_version_get_string(char *string)
|
||||
{
|
||||
memcpy(string, MBEDTLS_VERSION_STRING,
|
||||
sizeof(MBEDTLS_VERSION_STRING));
|
||||
}
|
||||
|
||||
void mbedtls_version_get_string_full(char *string)
|
||||
{
|
||||
memcpy(string, MBEDTLS_VERSION_STRING_FULL,
|
||||
sizeof(MBEDTLS_VERSION_STRING_FULL));
|
||||
}
|
||||
|
||||
#endif /* MBEDTLS_VERSION_C */
|
||||
Reference in New Issue
Block a user