Fix build error in cmake while printing digital build version

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2022-10-18 18:16:08 +08:00
parent d976673dd6
commit ff4181e246

View file

@ -27,6 +27,7 @@
#if defined(MBEDTLS_VERSION_C)
#include "mbedtls/build_info.h"
#include "mbedtls/version.h"
#endif /* MBEDTLS_VERSION_C */
#if defined(MBEDTLS_SSL_TEST_IMPOSSIBLE)
@ -1004,7 +1005,7 @@ int main( int argc, char *argv[] )
{
mbedtls_printf( "build version: %s (build %u)\n",
MBEDTLS_VERSION_STRING,
MBEDTLS_VERSION_NUMBER );
mbedtls_version_get_number() );
goto exit;
}
}
@ -2481,7 +2482,7 @@ int main( int argc, char *argv[] )
#if defined(MBEDTLS_VERSION_C)
mbedtls_printf( "build version: %s (build %u)\n",
MBEDTLS_VERSION_STRING, MBEDTLS_VERSION_NUMBER );
MBEDTLS_VERSION_STRING, mbedtls_version_get_number() );
#endif /* MBEDTLS_VERSION_C */
#if defined(MBEDTLS_X509_CRT_PARSE_C)