Merge pull request #10361 from bensze01/runtime-version-interface

Simplify runtime version info string methods
This commit is contained in:
David Horstmann
2025-08-27 14:59:15 +00:00
committed by GitHub
10 changed files with 29 additions and 43 deletions
+1 -4
View File
@@ -18,10 +18,7 @@
* linkage works, but that is all. */
int main()
{
/* This version string is 18 bytes long, as advised by version.h. */
char version[18];
mbedtls_version_get_string_full(version);
const char *version = mbedtls_version_get_string_full();
mbedtls_printf("Built against %s\n", version);
@@ -19,10 +19,7 @@
* linkage works, but that is all. */
int main()
{
/* This version string is 18 bytes long, as advised by version.h. */
char version[18];
mbedtls_version_get_string_full(version);
const char *version = mbedtls_version_get_string_full();
mbedtls_printf("Built against %s\n", version);
@@ -19,10 +19,7 @@
* linkage works, but that is all. */
int main()
{
/* This version string is 18 bytes long, as advised by version.h. */
char version[18];
mbedtls_version_get_string_full(version);
const char *version = mbedtls_version_get_string_full();
mbedtls_printf("Built against %s\n", version);