mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-10-19 02:23:41 +08:00

Return a const char* instead of taking a char* as an argument. This aligns us with the interface used in TF PSA Crypto. Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
31 lines
537 B
C
31 lines
537 B
C
/*
|
|
* Version information
|
|
*
|
|
* Copyright The Mbed TLS Contributors
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "ssl_misc.h"
|
|
|
|
#if defined(MBEDTLS_VERSION_C)
|
|
|
|
#include "mbedtls/version.h"
|
|
#include <string.h>
|
|
|
|
unsigned int mbedtls_version_get_number(void)
|
|
{
|
|
return MBEDTLS_VERSION_NUMBER;
|
|
}
|
|
|
|
const char *mbedtls_version_get_string(void)
|
|
{
|
|
return MBEDTLS_VERSION_STRING;
|
|
}
|
|
|
|
const char *mbedtls_version_get_string_full(void)
|
|
{
|
|
return MBEDTLS_VERSION_STRING_FULL;
|
|
}
|
|
|
|
#endif /* MBEDTLS_VERSION_C */
|